hackney
hackney copied to clipboard
Allow setting recv_timeout when sending request
I needed a longer timeout so added the ability to set it manually. Happy to refactor if would risk breaking anyone's code (if they are calling send_bits directly).
Hello! Aye you're right, we'll need to adjust a bit to avoid breaking existing code.
It would be nice to also leave the door open for more configuration. Perhaps we could provide another API here using the builder pattern?
request
|> hackney.configure
|> hackney.receive_timeout_ms(5000)
|> hackney.dispatch_bits
I guess I should at least have run the tests 😇
@lpil Yes builder is clearly the way to go. I'm on it.