github actix/actix-web http-v3.0.0-beta.2
actix-http: v3.0.0-beta.2

latest releases: awc-v3.5.1, web-v4.9.0, http-v3.9.0...
pre-release3 years ago

Added

  • IntoHeaderPair trait that allows using typed and untyped headers in the same methods. #1869
  • ResponseBuilder::insert_header method which allows using typed headers. #1869
  • ResponseBuilder::append_header method which allows using typed headers. #1869
  • TestRequest::insert_header method which allows using typed headers. #1869
  • ContentEncoding implements all necessary header traits. #1912
  • HeaderMap::len_keys has the behavior of the old len method. #1964
  • HeaderMap::drain as an efficient draining iterator. #1964
  • Implement IntoIterator for owned HeaderMap. #1964
  • trust-dns optional feature to enable trust-dns-resolver as client dns resolver. #1969

Changed

  • ResponseBuilder::content_type now takes an impl IntoHeaderValue to support using typed
    mime types. #1894
  • Renamed IntoHeaderValue::{try_into => try_into_value} to avoid ambiguity with std
    TryInto trait. #1894
  • Extensions::insert returns Option of replaced item. #1904
  • Remove HttpResponseBuilder::json2(). #1903
  • Enable HttpResponseBuilder::json() to receive data by value and reference. #1903
  • client::error::ConnectError Resolver variant contains Box<dyn std::error::Error> type. #1905
  • client::ConnectorConfig default timeout changed to 5 seconds. #1905
  • Simplify BlockingError type to a unit struct. It's now only triggered when blocking thread pool
    is dead. #1957
  • HeaderMap::len now returns number of values instead of number of keys. #1964
  • HeaderMap::insert now returns iterator of removed values. #1964
  • HeaderMap::remove now returns iterator of removed values. #1964

Removed

  • ResponseBuilder::set; use ResponseBuilder::insert_header. #1869
  • ResponseBuilder::set_header; use ResponseBuilder::insert_header. #1869
  • ResponseBuilder::header; use ResponseBuilder::append_header. #1869
  • TestRequest::with_hdr; use TestRequest::default().insert_header(). #1869
  • TestRequest::with_header; use TestRequest::default().insert_header(). #1869
  • actors optional feature. #1969
  • ResponseError impl for actix::MailboxError. #1969

Documentation

  • Vastly improve docs and add examples for HeaderMap. #1964

Don't miss a new actix-web release

NewReleases is sending notifications on new releases.