hyper
hyper copied to clipboard
feat(client): add option to HttpConnector to enable or disable
This adds http_info configuration option in http::Config. It can be used to enable or disable HttpInfo.
HttpInfo is set through methods defined on TcpStream (peer_addr() and local_addr()). Configuration options have to be made available to TcpStream in order to enforce http_info. HttpConnection is added to achieve this.
Fixes #2833
Ps: Rust and oss newbie so apologies if I missed some obvious issue 😅
I think you should open a new PR to submit breaking changes.
Are you still working on it🤔