[[bench]]
harness = false
name = "date-formatting"
path = "benches/date-formatting.rs"
[[bench]]
harness = false
name = "response-body-compression"
path = "benches/response-body-compression.rs"
required-features = ["compress-brotli", "compress-gzip", "compress-zstd"]
[dependencies.actix-codec]
version = "0.5"
[dependencies.actix-rt]
default-features = false
version = "2.2"
[dependencies.actix-service]
version = "2"
[dependencies.actix-tls]
default-features = false
optional = true
version = "3.4"
[dependencies.actix-utils]
version = "3"
[dependencies.ahash]
version = "0.8"
[dependencies.base64]
optional = true
version = "0.22"
[dependencies.bitflags]
version = "2"
[dependencies.brotli]
optional = true
version = "6"
[dependencies.bytes]
version = "1"
[dependencies.bytestring]
version = "1"
[dependencies.derive_more]
version = "0.99.5"
[dependencies.encoding_rs]
version = "0.8"
[dependencies.flate2]
optional = true
version = "1.0.13"
[dependencies.futures-core]
default-features = false
features = ["alloc"]
version = "0.3.17"
[dependencies.h2]
optional = true
version = "0.3.26"
[dependencies.http]
version = "0.2.7"
[dependencies.httparse]
version = "1.5.1"
[dependencies.httpdate]
version = "1.0.1"
[dependencies.itoa]
version = "1"
[dependencies.language-tags]
version = "0.3"
[dependencies.local-channel]
optional = true
version = "0.1"
[dependencies.mime]
version = "0.3.4"
[dependencies.percent-encoding]
version = "2.1"
[dependencies.pin-project-lite]
version = "0.2"
[dependencies.rand]
optional = true
version = "0.8"
[dependencies.sha1]
optional = true
version = "0.10"
[dependencies.smallvec]
version = "1.6.1"
[dependencies.tokio]
features = []
version = "1.24.2"
[dependencies.tokio-util]
features = ["io", "codec"]
version = "0.7"
[dependencies.tracing]
default-features = false
features = ["log"]
version = "0.1.30"
[dependencies.zstd]
optional = true
version = "0.13"
[dev-dependencies.actix-http-test]
features = ["openssl"]
version = "3"
[dev-dependencies.actix-server]
version = "2"
[dev-dependencies.actix-tls]
features = ["openssl", "rustls-0_23-webpki-roots"]
version = "3.4"
[dev-dependencies.actix-web]
version = "4"
[dev-dependencies.async-stream]
version = "0.3"
[dev-dependencies.criterion]
features = ["html_reports"]
version = "0.5"
[dev-dependencies.divan]
version = "0.1.8"
[dev-dependencies.env_logger]
version = "0.11"
[dev-dependencies.futures-util]
default-features = false
features = ["alloc"]
version = "0.3.17"
[dev-dependencies.memchr]
version = "2.4"
[dev-dependencies.once_cell]
version = "1.9"
[dev-dependencies.rcgen]
version = "0.13"
[dev-dependencies.regex]
version = "1.3"
[dev-dependencies.rustls-pemfile]
version = "2"
[dev-dependencies.rustversion]
version = "1"
[dev-dependencies.serde]
features = ["derive"]
version = "1.0"
[dev-dependencies.serde_json]
version = "1.0"
[dev-dependencies.static_assertions]
version = "1"
[dev-dependencies.tls-openssl]
package = "openssl"
version = "0.10.55"
[dev-dependencies.tls-rustls_023]
package = "rustls"
version = "0.23"
[dev-dependencies.tokio]
features = ["net", "rt", "macros"]
version = "1.24.2"
[[example]]
name = "actix-web"
path = "examples/actix-web.rs"
[[example]]
name = "bench"
path = "examples/bench.rs"
[[example]]
name = "echo"
path = "examples/echo.rs"
[[example]]
name = "echo2"
path = "examples/echo2.rs"
[[example]]
name = "h2c-detect"
path = "examples/h2c-detect.rs"
[[example]]
name = "h2spec"
path = "examples/h2spec.rs"
[[example]]
name = "hello-world"
path = "examples/hello-world.rs"
[[example]]
name = "streaming-error"
path = "examples/streaming-error.rs"
[[example]]
name = "tls_rustls"
path = "examples/tls_rustls.rs"
required-features = ["http2", "rustls-0_23"]
[[example]]
name = "ws"
path = "examples/ws.rs"
required-features = ["ws", "rustls-0_23"]
[features]
__compress = []
__tls = []
compress-brotli = ["__compress", "dep:brotli"]
compress-gzip = ["__compress", "dep:flate2"]
compress-zstd = ["__compress", "dep:zstd"]
default = []
http2 = ["dep:h2"]
openssl = ["__tls", "actix-tls/accept", "actix-tls/openssl"]
rustls = ["__tls", "rustls-0_20"]
rustls-0_20 = ["__tls", "actix-tls/accept", "actix-tls/rustls-0_20"]
rustls-0_21 = ["__tls", "actix-tls/accept", "actix-tls/rustls-0_21"]
rustls-0_22 = ["__tls", "actix-tls/accept", "actix-tls/rustls-0_22"]
rustls-0_23 = ["__tls", "actix-tls/accept", "actix-tls/rustls-0_23"]
ws = ["dep:local-channel", "dep:base64", "dep:rand", "dep:sha1"]
[lib]
name = "actix_http"
path = "src/lib.rs"
[lints.clippy]
[lints.rust.future_incompatible]
level = "deny"
priority = 0
[lints.rust.nonstandard_style]
level = "deny"
priority = 0
[lints.rust.rust_2018_idioms]
level = "deny"
priority = 0
[package]
authors = ["Nikolay Kim <fafhrd91@gmail.com>", "Rob Ede <robjtede@icloud.com>"]
autobenches = false
autobins = false
autoexamples = false
autotests = false
build = false
categories = ["network-programming", "asynchronous", "web-programming::http-server", "web-programming::websocket"]
description = "HTTP types and services for the Actix ecosystem"
edition = "2021"
homepage = "https://actix.rs"
keywords = ["actix", "http", "framework", "async", "futures"]
license = "MIT OR Apache-2.0"
name = "actix-http"
readme = "README.md"
repository = "https://github.com/actix/actix-web"
rust-version = "1.72"
version = "3.9.0"
[package.metadata.cargo_check_external_types]
allowed_external_types = ["actix_codec::*", "actix_service::*", "actix_tls::*", "actix_utils::*", "bytes::*", "bytestring::*", "encoding_rs::*", "futures_core::*", "h2::*", "http::*", "httparse::*", "language_tags::*", "mime::*", "openssl::*", "rustls::*", "tokio_util::*", "tokio::*"]
[package.metadata.docs.rs]
features = ["http2", "ws", "openssl", "rustls-0_20", "rustls-0_21", "rustls-0_22", "rustls-0_23", "compress-brotli", "compress-gzip", "compress-zstd"]
rustdoc-args = ["--cfg", "docsrs"]
[[test]]
name = "test_client"
path = "tests/test_client.rs"
[[test]]
name = "test_h2_timer"
path = "tests/test_h2_timer.rs"
[[test]]
name = "test_openssl"
path = "tests/test_openssl.rs"
[[test]]
name = "test_rustls"
path = "tests/test_rustls.rs"
[[test]]
name = "test_server"
path = "tests/test_server.rs"
[[test]]
name = "test_ws"
path = "tests/test_ws.rs"