mirror of
https://github.com/fafhrd91/actix-web
synced 2025-01-30 18:42:52 +01:00
Add actix-http support for actix error messages (#1379)
* Moved actix-http for actix from actix crate * remove resolver feature * renamed actix feature to actor * fixed doc attr for actors, add documentation
This commit is contained in:
parent
71c4bd1b30
commit
48ef4d7a26
@ -3,6 +3,8 @@
|
|||||||
* Setting a cookie's SameSite property, explicitly, to `SameSite::None` will now
|
* Setting a cookie's SameSite property, explicitly, to `SameSite::None` will now
|
||||||
result in `SameSite=None` being sent with the response Set-Cookie header.
|
result in `SameSite=None` being sent with the response Set-Cookie header.
|
||||||
To create a cookie without a SameSite attribute, remove any calls setting same_site.
|
To create a cookie without a SameSite attribute, remove any calls setting same_site.
|
||||||
|
* actix-http support for Actors messages was moved to actix-http crate and is enabled
|
||||||
|
with feature `actors`
|
||||||
|
|
||||||
## 2.0.0
|
## 2.0.0
|
||||||
|
|
||||||
|
@ -6,6 +6,8 @@
|
|||||||
|
|
||||||
* Update the `time` dependency to 0.2.7
|
* Update the `time` dependency to 0.2.7
|
||||||
|
|
||||||
|
* Moved actors messages support from actix crate, enabled with feature `actors`.
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
* Allow `SameSite=None` cookies to be sent in a response.
|
* Allow `SameSite=None` cookies to be sent in a response.
|
||||||
|
@ -15,7 +15,7 @@ license = "MIT/Apache-2.0"
|
|||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
[package.metadata.docs.rs]
|
[package.metadata.docs.rs]
|
||||||
features = ["openssl", "rustls", "failure", "compress", "secure-cookies"]
|
features = ["openssl", "rustls", "failure", "compress", "secure-cookies","actors"]
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
name = "actix_http"
|
name = "actix_http"
|
||||||
@ -39,6 +39,9 @@ failure = ["fail-ure"]
|
|||||||
# support for secure cookies
|
# support for secure cookies
|
||||||
secure-cookies = ["ring"]
|
secure-cookies = ["ring"]
|
||||||
|
|
||||||
|
# support for actix Actor messages
|
||||||
|
actors = ["actix"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
actix-service = "1.0.1"
|
actix-service = "1.0.1"
|
||||||
actix-codec = "0.2.0"
|
actix-codec = "0.2.0"
|
||||||
@ -47,6 +50,7 @@ actix-utils = "1.0.3"
|
|||||||
actix-rt = "1.0.0"
|
actix-rt = "1.0.0"
|
||||||
actix-threadpool = "0.3.1"
|
actix-threadpool = "0.3.1"
|
||||||
actix-tls = { version = "1.0.0", optional = true }
|
actix-tls = { version = "1.0.0", optional = true }
|
||||||
|
actix = { version = "0.10.0-alpha.1", optional = true }
|
||||||
|
|
||||||
base64 = "0.11"
|
base64 = "0.11"
|
||||||
bitflags = "1.2"
|
bitflags = "1.2"
|
||||||
|
@ -951,6 +951,16 @@ where
|
|||||||
/// Compatibility for `failure::Error`
|
/// Compatibility for `failure::Error`
|
||||||
impl ResponseError for fail_ure::Error {}
|
impl ResponseError for fail_ure::Error {}
|
||||||
|
|
||||||
|
#[cfg(feature = "actors")]
|
||||||
|
/// `InternalServerError` for `actix::MailboxError`
|
||||||
|
/// This is supported on feature=`actors` only
|
||||||
|
impl ResponseError for actix::MailboxError {}
|
||||||
|
|
||||||
|
#[cfg(feature = "actors")]
|
||||||
|
/// `InternalServerError` for `actix::ResolverError`
|
||||||
|
/// This is supported on feature=`actors` only
|
||||||
|
impl ResponseError for actix::actors::resolver::ResolverError {}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user