mirror of
https://github.com/fafhrd91/actix-web
synced 2025-08-30 16:40:21 +02:00
move encoding to server
This commit is contained in:
20
src/lib.rs
20
src/lib.rs
@@ -93,7 +93,6 @@ mod application;
|
||||
mod body;
|
||||
mod context;
|
||||
mod helpers;
|
||||
mod encoding;
|
||||
mod httprequest;
|
||||
mod httpresponse;
|
||||
mod info;
|
||||
@@ -141,12 +140,25 @@ pub use openssl::pkcs12::Pkcs12;
|
||||
pub mod headers {
|
||||
//! Headers implementation
|
||||
|
||||
pub use encoding::ContentEncoding;
|
||||
pub use httpresponse::ConnectionType;
|
||||
|
||||
pub use cookie::Cookie;
|
||||
pub use cookie::CookieBuilder;
|
||||
pub use cookie::{Cookie, CookieBuilder};
|
||||
pub use http_range::HttpRange;
|
||||
|
||||
/// Represents supported types of content encodings
|
||||
#[derive(Copy, Clone, PartialEq, Debug)]
|
||||
pub enum ContentEncoding {
|
||||
/// Automatically select encoding based on encoding negotiation
|
||||
Auto,
|
||||
/// A format using the Brotli algorithm
|
||||
Br,
|
||||
/// A format using the zlib structure with deflate algorithm
|
||||
Deflate,
|
||||
/// Gzip algorithm
|
||||
Gzip,
|
||||
/// Indicates the identity function (i.e. no compression, nor modification)
|
||||
Identity,
|
||||
}
|
||||
}
|
||||
|
||||
pub mod dev {
|
||||
|
Reference in New Issue
Block a user