wojtekmach / req

Req is a batteries-included HTTP client for Elixir.
https://hexdocs.pm/req
Apache License 2.0
1.09k stars 117 forks source link

Support a max_response_body_length option? #419

Closed PragTob closed 1 month ago

PragTob commented 1 month ago

:wave:

Would there be some interest in having a mac_response_body_length option? Naturally I'm not sure if that should be req, finch or mint.

Of course, you can handle it locally (and/or maybe implement your own step). It seems like a nice thing that could be offered from my point of view when you want to protect yourself against surprisingly too big responses.

Then again, it's something we currently need so of course I'd like it :)

Thanks a lot for req and all your work!

wojtekmach commented 1 month ago

Hey Tobias, this is a duplicate of https://github.com/wojtekmach/req/issues/355, there's a tip there how you can do it today and if Finch exposes this, so would we!

PragTob commented 1 month ago

@wojtekmach sorry I didn't search well enough before! Thanks for the pointer!