v2.0.0
This release removes the addr param from the constructors, and upgrades http-types to 2.0.0. Creating HTTP clients and servers is now even simpler than before:
// HTTP/1.1 client
let stream = TcpStream::connect("127.0.0.1:8080").await?;
let url = Url::parse(&format!("http://{}/foo", stream.peer_addr()?))?;
let req = Request::new(Method::Get, url);
let res = async_h1::connect(stream.clone(), req).await?;
println!("{:?}", res);Added
Changed
- Set
Requesturl host fromHostheader #106 - When we don't recognize an HTTP version include the HTTP version in the error #102
- Remove the
addrparam from theacceptfunctions #107 - Updated to
http-typesv2.0.0 #105
Fixed
- Don't add the
Dateheader in the response if it already exists #96 - Don't double-set
Content-LengthandTransfer-Encodingheaders #98
Internal
- Include a long chunked test #90