valyala / fasthttp

Fast HTTP package for Go. Tuned for high performance. Zero memory allocations in hot paths. Up to 10x faster than net/http
MIT License
21.95k stars 1.76k forks source link

how to use readLimitBody, i want to disable preParseMultipartForm #1653

Open fibbery opened 1 year ago

fibbery commented 1 year ago

https://github.com/valyala/fasthttp/blob/1242d8af15afca2e1201b7d0e0980c485599550f/http.go#L1183 can export this function , i want to diable preParseMultipartForm

erikdubbelboer commented 1 year ago

We already have an exposed function with the same name. I would be open to a pull request to add an option for this to Request.

fibbery commented 1 year ago

will release in next version ?

Erik Dubbelboer @.***> 于2023年11月10日周五 18:32写道:

We already have an exposed function with the same name. I would be open to a pull request to add an option for this to Request.

— Reply to this email directly, view it on GitHub https://github.com/valyala/fasthttp/issues/1653#issuecomment-1805475100, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACBO37QBWYV7ZGTF7XXLXWDYDX7FVAVCNFSM6AAAAAA7F2XR4WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBVGQ3TKMJQGA . You are receiving this because you authored the thread.Message ID: @.***>

erikdubbelboer commented 1 year ago

I mean, if you create a pull request for the feature, then I can merge it and release it in the version after that.

fibbery commented 1 year ago

Ok, I'll do that.

Erik Dubbelboer @.***>于2023年11月10日 周五19:02写道:

I mean, if you create a pull request for the feature, then I can merge it and release it in the version after that.

— Reply to this email directly, view it on GitHub https://github.com/valyala/fasthttp/issues/1653#issuecomment-1805518033, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACBO37SINODGRBOEVHCHEV3YDYCUVAVCNFSM6AAAAAA7F2XR4WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBVGUYTQMBTGM . You are receiving this because you authored the thread.Message ID: @.***>