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
Request
url host fromHost
header #106 - When we don't recognize an HTTP version include the HTTP version in the error #102
- Remove the
addr
param from theaccept
functions #107 - Updated to
http-types
v2.0.0 #105
Fixed
- Don't add the
Date
header in the response if it already exists #96 - Don't double-set
Content-Length
andTransfer-Encoding
headers #98
Internal
- Include a long chunked test #90