Limiting Response Size with `HttpClient`

When using
HttpClient
, how do I limit the size of the response?
I don't want to accidentally download a 2GB file, how do I protect myself against that?
Was this page helpful?