Skip to content

v2.0.0

Compare
Choose a tag to compare
@yoshuawuyts yoshuawuyts released this 22 May 22:38

documentation

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

  • Added support for Expect header #110
  • Added more log::trace points #97

Changed

  • Set Request url host from Host header #106
  • When we don't recognize an HTTP version include the HTTP version in the error #102
  • Remove the addr param from the accept 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 and Transfer-Encoding headers #98

Internal

  • Include a long chunked test #90