Added
IntoHeaderPair
trait that allows using typed and untyped headers in the same methods. #1869ResponseBuilder::insert_header
method which allows using typed headers. #1869ResponseBuilder::append_header
method which allows using typed headers. #1869TestRequest::insert_header
method which allows using typed headers. #1869ContentEncoding
implements all necessary header traits. #1912HeaderMap::len_keys
has the behavior of the oldlen
method. #1964HeaderMap::drain
as an efficient draining iterator. #1964- Implement
IntoIterator
for ownedHeaderMap
. #1964 trust-dns
optional feature to enabletrust-dns-resolver
as client dns resolver. #1969
Changed
ResponseBuilder::content_type
now takes animpl 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 containsBox<dyn std::error::Error>
type. #1905client::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. #1964HeaderMap::insert
now returns iterator of removed values. #1964HeaderMap::remove
now returns iterator of removed values. #1964
Removed
ResponseBuilder::set
; useResponseBuilder::insert_header
. #1869ResponseBuilder::set_header
; useResponseBuilder::insert_header
. #1869ResponseBuilder::header
; useResponseBuilder::append_header
. #1869TestRequest::with_hdr
; useTestRequest::default().insert_header()
. #1869TestRequest::with_header
; useTestRequest::default().insert_header()
. #1869actors
optional feature. #1969ResponseError
impl foractix::MailboxError
. #1969
Documentation
- Vastly improve docs and add examples for
HeaderMap
. #1964