mirror of https://github.com/fafhrd91/actix-web
Compare commits
3 Commits
b7a0ff0a3a
...
3849cdaa6c
Author | SHA1 | Date |
---|---|---|
|
3849cdaa6c | |
|
a5c2d0531b | |
|
049b49290d |
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
|
- Update `brotli` dependency to `7`.
|
||||||
- Minimum supported Rust version (MSRV) is now 1.75.
|
- Minimum supported Rust version (MSRV) is now 1.75.
|
||||||
|
|
||||||
## 3.9.0
|
## 3.9.0
|
||||||
|
|
|
@ -139,7 +139,7 @@ sha1 = { version = "0.10", optional = true }
|
||||||
actix-tls = { version = "3.4", default-features = false, optional = true }
|
actix-tls = { version = "3.4", default-features = false, optional = true }
|
||||||
|
|
||||||
# compress-*
|
# compress-*
|
||||||
brotli = { version = "6", optional = true }
|
brotli = { version = "7", optional = true }
|
||||||
flate2 = { version = "1.0.13", optional = true }
|
flate2 = { version = "1.0.13", optional = true }
|
||||||
zstd = { version = "0.13", optional = true }
|
zstd = { version = "0.13", optional = true }
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,9 @@
|
||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
|
- On Windows, an error is now returned from `HttpServer::bind()` (or TLS variants) when binding to a socket that's already in use.
|
||||||
|
- Update `brotli` dependency to `7`.
|
||||||
- Minimum supported Rust version (MSRV) is now 1.75.
|
- Minimum supported Rust version (MSRV) is now 1.75.
|
||||||
- On Windows platforms, produce an error when invoking `HttpServer::bind` on a socket that's already in use. See [issue 2958](https://github.com/actix/actix-web/issues/2958).
|
|
||||||
|
|
||||||
## 4.9.0
|
## 4.9.0
|
||||||
|
|
||||||
|
|
|
@ -172,7 +172,7 @@ actix-files = "0.6"
|
||||||
actix-test = { version = "0.1", features = ["openssl", "rustls-0_23"] }
|
actix-test = { version = "0.1", features = ["openssl", "rustls-0_23"] }
|
||||||
awc = { version = "3", features = ["openssl"] }
|
awc = { version = "3", features = ["openssl"] }
|
||||||
|
|
||||||
brotli = "6"
|
brotli = "7"
|
||||||
const-str = "0.5"
|
const-str = "0.5"
|
||||||
core_affinity = "0.8"
|
core_affinity = "0.8"
|
||||||
criterion = { version = "0.5", features = ["html_reports"] }
|
criterion = { version = "0.5", features = ["html_reports"] }
|
||||||
|
|
|
@ -206,11 +206,11 @@ impl DispositionParam {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A *Content-Disposition* header. It is compatible to be used either as
|
/// `Content-Disposition` header.
|
||||||
/// [a response header for the main body](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition#as_a_response_header_for_the_main_body)
|
///
|
||||||
/// as (re)defined in [RFC 6266](https://datatracker.ietf.org/doc/html/rfc6266), or as
|
/// It is compatible to be used either as [a response header for the main body][use_main_body]
|
||||||
/// [a header for a multipart body](https://mdn.io/Content-Disposition#As_a_header_for_a_multipart_body)
|
/// as (re)defined in [RFC 6266], or as [a header for a multipart body][use_multipart] as
|
||||||
/// as (re)defined in [RFC 7587](https://datatracker.ietf.org/doc/html/rfc7578).
|
/// (re)defined in [RFC 7587].
|
||||||
///
|
///
|
||||||
/// In a regular HTTP response, the *Content-Disposition* response header is a header indicating if
|
/// In a regular HTTP response, the *Content-Disposition* response header is a header indicating if
|
||||||
/// the content is expected to be displayed *inline* in the browser, that is, as a Web page or as
|
/// the content is expected to be displayed *inline* in the browser, that is, as a Web page or as
|
||||||
|
@ -305,6 +305,11 @@ impl DispositionParam {
|
||||||
/// change to match local file system conventions if applicable, and do not use directory path
|
/// change to match local file system conventions if applicable, and do not use directory path
|
||||||
/// information that may be present.
|
/// information that may be present.
|
||||||
/// See [RFC 2183 §2.3](https://datatracker.ietf.org/doc/html/rfc2183#section-2.3).
|
/// See [RFC 2183 §2.3](https://datatracker.ietf.org/doc/html/rfc2183#section-2.3).
|
||||||
|
///
|
||||||
|
/// [use_main_body]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition#as_a_response_header_for_the_main_body
|
||||||
|
/// [RFC 6266]: https://datatracker.ietf.org/doc/html/rfc6266
|
||||||
|
/// [use_multipart]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition#as_a_header_for_a_multipart_body
|
||||||
|
/// [RFC 7587]: https://datatracker.ietf.org/doc/html/rfc7578
|
||||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||||
pub struct ContentDisposition {
|
pub struct ContentDisposition {
|
||||||
/// The disposition type
|
/// The disposition type
|
||||||
|
|
|
@ -193,7 +193,7 @@ where
|
||||||
///
|
///
|
||||||
/// One thread pool is set up **per worker**; not shared across workers.
|
/// One thread pool is set up **per worker**; not shared across workers.
|
||||||
///
|
///
|
||||||
/// By default set to 512 divided by the number of workers.
|
/// By default, set to 512 divided by [available parallelism](std::thread::available_parallelism()).
|
||||||
pub fn worker_max_blocking_threads(mut self, num: usize) -> Self {
|
pub fn worker_max_blocking_threads(mut self, num: usize) -> Self {
|
||||||
self.builder = self.builder.worker_max_blocking_threads(num);
|
self.builder = self.builder.worker_max_blocking_threads(num);
|
||||||
self
|
self
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
|
- Update `brotli` dependency to `7`.
|
||||||
- Prevent panics on connection pool drop when Tokio runtime is shutdown early.
|
- Prevent panics on connection pool drop when Tokio runtime is shutdown early.
|
||||||
- Minimum supported Rust version (MSRV) is now 1.75.
|
- Minimum supported Rust version (MSRV) is now 1.75.
|
||||||
|
|
||||||
|
|
|
@ -141,7 +141,7 @@ actix-tls = { version = "3.4", features = ["openssl", "rustls-0_23"] }
|
||||||
actix-utils = "3"
|
actix-utils = "3"
|
||||||
actix-web = { version = "4", features = ["openssl"] }
|
actix-web = { version = "4", features = ["openssl"] }
|
||||||
|
|
||||||
brotli = "6"
|
brotli = "7"
|
||||||
const-str = "0.5"
|
const-str = "0.5"
|
||||||
env_logger = "0.11"
|
env_logger = "0.11"
|
||||||
flate2 = "1.0.13"
|
flate2 = "1.0.13"
|
||||||
|
|
1
justfile
1
justfile
|
@ -73,6 +73,7 @@ test-coverage-lcov toolchain="": (test-coverage toolchain)
|
||||||
|
|
||||||
# Document crates in workspace.
|
# Document crates in workspace.
|
||||||
doc *args: && doc-set-workspace-crates
|
doc *args: && doc-set-workspace-crates
|
||||||
|
rm -f "$(cargo metadata --format-version=1 | jq -r '.target_directory')/doc/crates.js"
|
||||||
RUSTDOCFLAGS="--cfg=docsrs -Dwarnings" cargo +nightly doc --workspace {{ all_crate_features }} {{ args }}
|
RUSTDOCFLAGS="--cfg=docsrs -Dwarnings" cargo +nightly doc --workspace {{ all_crate_features }} {{ args }}
|
||||||
|
|
||||||
[private]
|
[private]
|
||||||
|
|
Loading…
Reference in New Issue