hackney
hackney copied to clipboard
🪝 Make requests to HTTP servers with Hackney
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).
Fixes #5. Hackney sees a body of `` as empty and doesn't set any extra headers for it. But it sees `[]` as a non-empty body that happens to have...
Currently all GET requests from gleam_hackney include `Content-Type` and `Content-Length` headers, even when the body is empty (in which case they're `application/octet-stream` and `0` respectively, [defaults from hackney](https://github.com/benoitc/hackney/blob/master/src/hackney_request.erl#L351-L398)). RFC 9110...