client::Connector
type now only have one generic type foractix_service::Service
. #2063
- Cookie handling.
actix-web
andawc
retain cookie support. #2065
- Feature
cookies
is now optional and disabled by default. #1981 ws::hash_key
now returns array. #2035ResponseBuilder::json
now takesimpl Serialize
. #2052
- Re-export of
futures_channel::oneshot::Canceled
is removed fromerror
mod. #1994 ResponseError
impl forfutures_channel::oneshot::Canceled
is removed. #1994
- No notable changes.
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
ResponseBuilder::content_type
now takes animpl IntoHeaderValue
to support using typedmime
types. #1894- Renamed
IntoHeaderValue::{try_into => try_into_value}
to avoid ambiguity with stdTryInto
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
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
- Vastly improve docs and add examples for
HeaderMap
. #1964
- Add
Http3
toProtocol
enum for future compatibility and also mark#[non_exhaustive]
.
- Update
actix-*
dependencies to tokio1.0
based versions. #1813 - Bumped
rand
to0.8
. - Update
bytes
to1.0
. #1813 - Update
h2
to0.3
. #1813 - The
ws::Message::Text
enum variant now contains abytestring::ByteString
. #1864
- Deprecated
on_connect
methods have been removed. Prefer the newon_connect_ext
technique. #1857 - Remove
ResponseError
impl foractix::actors::resolver::ResolverError
due to deprecate of resolver actor. #1813 - Remove
ConnectError::SslHandshakeError
and re-export ofHandshakeError
. due to the removal of this type fromtokio-openssl
crate. openssl handshake error would return asConnectError::SslError
. #1813 - Remove
actix-threadpool
dependency. Useactix_rt::task::spawn_blocking
. Due to this changeactix_threadpool::BlockingError
type is moved intoactix_http::error
module. #1878
- HttpResponse builders for 1xx status codes. #1768
Accept::mime_precedence
andAccept::mime_preference
. #1793TryFrom<u16>
andTryFrom<f32>
forhttp::header::Quality
. #1797
- Started dropping
transfer-encoding: chunked
andContent-Length
for 1XX and 204 responses. #1767
- Upgrade
serde_urlencoded
to0.7
. #1773
- Added more flexible
on_connect_ext
methods for on-connect handling. #1754
- Upgrade
base64
to0.13
. #1744 - Upgrade
pin-project
to1.0
. #1733 - Deprecate
ResponseBuilder::{if_some, if_true}
. #1760
- No significant changes from
2.0.0-beta.4
.
- Update actix-codec and actix-utils dependencies.
- Update actix-connect and actix-tls dependencies.
- Memory leak of
client::pool::ConnectorPoolSupport
. #1626
- Potential UB in h1 decoder using uninitialized memory. #1614
- Fix illegal chunked encoding. #1615
- Migrate cookie handling to
cookie
crate. #1558 - Update
sha-1
to 0.9. #1586 - Fix leak in client pool. #1580
- MSRV is now 1.41.1.
- Bump minimum supported Rust version to 1.40
- content_length function is removed, and you can set Content-Length by calling no_chunking function #1439
BodySize::Sized64
variant has been removed.BodySize::Sized
now receives au64
instead of ausize
.- Update
base64
dependency to 0.12
- Support parsing of
SameSite=None
#1503
- Correct spelling of ConnectError::Unresolved #1487
- Fix a mistake in the encoding of websocket continuation messages wherein Item::FirstText and Item::FirstBinary are each encoded as the other.
- Implement
std::error::Error
for our custom errors #1422 - Remove
failure
support forResponseError
since that crate will be deprecated in the near future.
- Update
actix-connect
andactix-tls
dependency to 2.0.0-alpha.1. #1395 - Change default initial window size and connection window size for HTTP2 to 2MB and 1MB respectively to improve download speed for awc when downloading large objects. #1394
- client::Connector accepts initial_window_size and initial_connection_window_size HTTP2 configuration. #1394
- client::Connector allowing to set max_http_version to limit HTTP version to be used. #1394
- Update the
time
dependency to 0.2.7. - Moved actors messages support from actix crate, enabled with feature
actors
. - Breaking change: trait MessageBody requires Unpin and accepting
Pin<&mut Self>
instead of&mut self
in the poll_next(). - MessageBody is not implemented for &'static [u8] anymore.
- Allow
SameSite=None
cookies to be sent in a response.
- Poll upgrade service's readiness from HTTP service handlers
- Replace brotli with brotli2 #1224
- Add websockets continuation frame support
- Replace
flate2-xxx
features withcompress
- Check
Upgrade
service readiness before calling it - Fix buffer remaining capacity calculation
- Websockets: Ping and Pong should have binary data #1049
- Add impl ResponseBuilder for Error
- Use rust based brotli compression library
- Migrate to tokio 0.2
- Migrate to
std::future
- Add support for serde_json::Value to be passed as argument to ResponseBuilder.body()
- Add an additional
filename*
param in theContent-Disposition
header ofactix_files::NamedFile
to be more compatible. (#1151) - Allow to use
std::convert::Infallible
asactix_http::error::Error
- To be compatible with non-English error responses,
ResponseError
rendered withtext/plain; charset=utf-8
header [#1118]
- Add support for sending HTTP requests with
Rc<RequestHead>
in addition to sending HTTP requests withRequestHead
- h2 will use error response #1080
- on_connect result isn't added to request extensions for http2 requests #1009
- Dropped the
byteorder
-dependency in favor ofstdlib
-implementation - Update percent-encoding to 2.1
- Update serde_urlencoded to 0.6.1
- Fixed a panic in the HTTP2 handshake in client HTTP requests (#1031)
- Add
rustls
support - Add
Clone
impl forHeaderMap
- awc client panic #1016
- Invalid response with compression middleware enabled, but compression-related features disabled #997
- Add support for downcasting response errors #986
- Replace
ClonableService
with local copy - Upgrade
rand
dependency version to 0.7
- Add
on-connect
callback,HttpServiceBuilder::on_connect()
#946
- Use
encoding_rs
crate instead of unmaintainedencoding
crate - Add
Copy
andClone
impls forws::Codec
- Do not compress NoContent (204) responses #918
- Debug impl for ResponseBuilder
- From SizedStream and BodyStream for Body
- SizedStream uses u64
- Parse incoming stream before closing stream on disconnect #868
- Handle socket read disconnect
- Update actix-service to 0.4
- Expect and upgrade services accept
ServerConfig
config.
OneRequest
service
- Clean up response extensions in response pool #817
- Allow to render h1 request headers in
Camel-Case
- Read until eof for http/1.0 responses #771
- Fix http client pool management
- Fix http client wait queue management #794
- Fix BorrowMutError panic in client connector #793
- Cookie::max_age() accepts value in seconds
- Cookie::max_age_time() accepts value in time::Duration
- Allow to specify server address for client connector
- Expose peer addr via
Request::peer_addr()
andRequestHead::peer_addr
actix_http::encoding
always available- use trust-dns-resolver 0.11.0
- Allow to use custom service for upgrade requests
- Added
h1::SendResponse
future.
- MessageBody::length() renamed to MessageBody::size() for consistency
- ws handshake verification functions take RequestHead instead of Request
- Allow to use custom
Expect
handler - Add minimal
std::error::Error
impl forError
- Export IntoHeaderValue
- Render error and return as response body
- Use thread pool for response body compression
- Removed PayloadBuffer
- Warn when an unsealed private cookie isn't valid UTF-8
- Rust 1.31.0 compatibility
- Preallocate read buffer for h1 codec
- Detect socket disconnection during protocol selection
- Added ws::Message::Nop, no-op websockets message
- Do not use thread pool for decompression if chunk size is smaller than 2048.
- Initial impl