id stringlengths 20 30 | source stringclasses 1
value | chunk_index int64 0 520k | token_count int32 154 512 | content stringlengths 185 57.5k |
|---|---|---|---|---|
rust_dataset_chunk_1400 | rust_dataset.txt | 1,400 | 512 | .3
- Fix stored XSS vulnerability when `Files::show_files_listing()` is explicitly enabled. [GHSA-5rrw-whjq-pmhh](https://github.com/actix/actix-web/security/advisories/GHSA-5rrw-whjq-pmhh)
## 0.7.2
- Evaluate request preconditions before processing `Range` headers when serving a `NamedFile`.
- Ignore `Range` header... |
rust_dataset_chunk_1401 | rust_dataset.txt | 1,401 | 512 | actix/actix-web/pull/3694
## 0.6.9
- Correct `derive_more` dependency feature requirements.
## 0.6.8
- Add `Files::with_permanent_redirect()` method.
- Change default redirect status code to 307 Temporary Redirect.
## 0.6.7
- Add `{Files, NamedFile}::read_mode_threshold()` methods to allow faster synchronous read... |
rust_dataset_chunk_1402 | rust_dataset.txt | 1,402 | 512 | changes since `0.6.0-beta.16`.
## 0.6.0-beta.16
- No significant changes since `0.6.0-beta.15`.
## 0.6.0-beta.15
- No significant changes since `0.6.0-beta.14`.
## 0.6.0-beta.14
- The `prefer_utf8` option introduced in `0.4.0` is now true by default. [#2583]
[#2583]: https://github.com/actix/actix-web/pull/2583... |
rust_dataset_chunk_1403 | rust_dataset.txt | 1,403 | 512 | - Minimum supported Rust version (MSRV) is now 1.52.
## 0.6.0-beta.7
- Minimum supported Rust version (MSRV) is now 1.51.
## 0.6.0-beta.6
- Added `Files::path_filter()`. [#2274]
- `Files::show_files_listing()` can now be used with `Files::index_file()` to show files listing as a fallback when the index file is not ... |
rust_dataset_chunk_1404 | rust_dataset.txt | 1,404 | 512 | ]: https://github.com/actix/actix-web/pull/1953
## 0.6.0-beta.1
- `HttpRange::parse` now has its own error type.
- Update `bytes` to `1.0`. [#1813]
[#1813]: https://github.com/actix/actix-web/pull/1813
## 0.5.0
- Optionally support hidden files/directories. [#1811]
[#1811]: https://github.com/actix/actix-web/pull... |
rust_dataset_chunk_1405 | rust_dataset.txt | 1,405 | 512 | ` crate version to 2.1
- Allow user defined request guards for `Files` #1113
## 0.1.4
- Allow to disable `Content-Disposition` header #686
## 0.1.3
- Do not set `Content-Length` header, let actix-http set it #930
## 0.1.2
- Content-Length is 0 for NamedFile HEAD request #914
- Fix ring dependency from actix-web d... |
rust_dataset_chunk_1406 | rust_dataset.txt | 1,406 | 512 | 383153695?label=chat&logo=discord)](https://discord.gg/NWpN5mmg3x)
<!-- prettier-ignore-end -->
<!-- cargo-rdme start -->
Static file serving for Actix Web.
Provides a non-blocking service for serving static files from disk.
## Examples
```rust
use actix_web::App;
use actix_files::Files;
let app = App::new()
... |
rust_dataset_chunk_1407 | rust_dataset.txt | 1,407 | 512 | 3.20.5
- Send GOAWAY to HTTP/2 connections during graceful server shutdown and close them once their in-flight streams finish.
## 3.20.4
- Fix HTTP/1 client response framing for informational, 204, and 304 responses to prevent consumption of the next response.
## 3.20.3
- Disable large-window Brotli decompression.... |
rust_dataset_chunk_1408 | rust_dataset.txt | 1,408 | 512 | WebSocket handshakes with a `Sec-WebSocket-Key` value that is not valid Base64 or does not decode to 16 bytes.
- Reject WebSocket Close frames with payloads larger than 125 bytes.
- Return a 426 Upgrade Required response when an unsupported WebSocket version is requested.
## 3.18.12
- Flush compressed response bodie... |
rust_dataset_chunk_1409 | rust_dataset.txt | 1,409 | 512 | ERROR: type should be string, got " https://github.com/actix/actix-web/issues/3967\n[#3100]: https://github.com/actix/actix-web/issues/3100\n\n## 3.12.1\n\n**Notice: This release contains a security fix. Users are encouraged to update to this version ASAP.**\n\n- SECURITY: Reject HTTP/1 requests with ambiguous request framing from `Content-Length` and `Transfer-Encoding` headers to prevent request smuggling.\n- Encode the HTTP/1 `Connection: Upgrade` header in Camel-Case when camel-case header formatting is enabled.[#3953]\n- Fix `HeaderMap` iterators' `len()` and `size_hint()` implementations for multi-value headers.\n- Update `rand` dependency to `0.10`.\n- Update `sha1` dependency to `0.11`.\n- Add `ServiceConfigBuilder::h1_write_buffer_size()` and `HttpServiceBuilder::h1_write_buffer_size()`.\n\n[#3953]: https://github.com/actix/actix-web/pull/3953\n\n## 3.12.0\n\n- Minimum supported Rust version (MSRV) is now 1.88.\n- Increase default HTTP/2 flow control window sizes. [#3638]\n- Expose configuration methods to improve upload throughput. [#3638]\n- Fix truncated body ending without error when connection closed abnormally. [#3067]\n- Add config/method for `TCP_NODELAY`. [#3918]\n- Do not compress 206 Partial Content responses. [#3191]\n- Fix lingering sockets and client stalls when responding early to dropped chunked request payloads. [#2972]\n\n[#3638]: https://github.com/actix/actix-web/issues/3638\n[#3067]: https://github.com/actix/actix-web/pull/3067\n[#3918]: https://github.com/actix/actix-web/pull/3918\n[#3191]: https://github.com/actix/actix-web/issues/3191\n[#2972]: https://github.com/actix/actix-web/issues/2972\n\n## 3.11.2\n\n- Properly wake Payload receivers when feeding errors or EOF.\n- Add `ServiceConfigBuilder` type to facilitate future configuration extensions.\n- Add a configuration option to allow/disallow half closed connections in HTTP/1. This defaults to allow, reverting the change made in 3.11.1.\n- Shutdown connections when HTTP Responses are" |
rust_dataset_chunk_1410 | rust_dataset.txt | 1,410 | 512 | written without reading full Requests.
## 3.11.1
- Prevent more hangs after client disconnects.
- More malformed WebSocket frames are now gracefully rejected.
- Using `TestRequest::set_payload()` now sets a Content-Length header.
## 3.11.0
- Update `brotli` dependency to `8`.
## 3.10.0
### Added
- Add `header::... |
rust_dataset_chunk_1411 | rust_dataset.txt | 1,411 | 512 | Service, HttpService}::rustls_021()` and `HttpService::rustls_021_with_config()` service constructors.
- Add `body::to_bytes_limited()` function.
- Add `body::BodyLimitExceeded` error type.
### Changed
- Minimum supported Rust version (MSRV) is now 1.68 due to transitive `time` dependency.
## 3.3.1
### Fixed
- Use... |
rust_dataset_chunk_1412 | rust_dataset.txt | 1,412 | 512 | /actix/actix-web/pull/2968
## 3.2.2
### Changed
- Minimum supported Rust version (MSRV) is now 1.59 due to transitive `time` dependency.
### Fixed
- Avoid possibility of dispatcher getting stuck while back-pressuring I/O. [#2369]
[#2369]: https://github.com/actix/actix-web/pull/2369
## 3.2.1
### Fixed
- Fix pa... |
rust_dataset_chunk_1413 | rust_dataset.txt | 1,413 | 512 | -web/pull/2683
## 3.0.1
- Fix panic in H1 dispatcher when pipelining is used with keep-alive. [#2678]
[#2678]: https://github.com/actix/actix-web/issues/2678
## 3.0.0
### Dependencies
- Updated `actix-*` to Tokio v1-based versions. [#1813]
- Updated `bytes` to `1.0`. [#1813]
- Updated `h2` to `0.3`. [#1813]
- Upd... |
rust_dataset_chunk_1414 | rust_dataset.txt | 1,414 | 512 | - `MessageBody::boxed` trait method for wrapping boxing types efficiently. [#2520]
- `MessageBody::try_into_bytes` trait method, with default implementation, for optimizations on body types that complete in exactly one poll. [#2522]
- `Request::conn_data()`. [#2491]
- `Request::take_conn_data()`. [#2491]
- `Re... |
rust_dataset_chunk_1415 | rust_dataset.txt | 1,415 | 512 | ` for `Response<Vec<u8>>`. [#2625]
- Implement `FromStr` for `ContentEncoding`. [#1912]
- Implement `Header` for `ContentEncoding`. [#1912]
- Implement `IntoHeaderValue` for `ContentEncoding`. [#1912]
- Implement `IntoIterator` for `HeaderMap`. [#1964]
- Implement `MessageBody` for `bytestring::ByteString`. [... |
rust_dataset_chunk_1416 | rust_dataset.txt | 1,416 | 512 | Config::{client_timer_expire => client_request_deadline}`. [#2611]
- Rename `ServiceConfig::{client_disconnect_timer => client_disconnect_deadline}`. [#2611]
- Rename `h1::Codec::{keepalive => keep_alive}`. [#2611]
- Rename `h1::Codec::{keepalive_enabled => keep_alive_enabled}`. [#2611]
- Rename `h1::ClientCode... |
rust_dataset_chunk_1417 | rust_dataset.txt | 1,417 | 512 | :
- Implementation of `Stream` for `Payload` no longer requires the `Stream` variant be `Unpin`. [#2545]
- Implementation of `Future` for `h1::SendResponse` no longer requires the body type be `Unpin`. [#2545]
- Implementation of `Stream` for `encoding::Decoder` no longer requires the stream type be `Unpin`. [#25... |
rust_dataset_chunk_1418 | rust_dataset.txt | 1,418 | 512 | are no longer restricted to `Unpin` types. [#2152]
- Fixed slice creation pointing to potential uninitialized data on h1 encoder. [#2364]
- Fixed quality parse error in Accept-Encoding header. [#2344]
### Removed
- Crate Features:
- `compress` feature. [#2065]
- `cookies` feature. [#2065]
- `trust-dns` feature... |
rust_dataset_chunk_1419 | rust_dataset.txt | 1,419 | 512 | `Response::error()` [#2205]
- `Response::take_body()` and old `Response::into_body()` method that casted body type. [#2201]
- `Response`'s status code builders. [#2159]
- `ResponseBuilder::{if_true, if_some}()` (previously deprecated). [#2148]
- `ResponseBuilder::{set, set_header}()`; use `ResponseBuilder::ins... |
rust_dataset_chunk_1420 | rust_dataset.txt | 1,420 | 512 | [#2065]
- `client` module. Connector types now live in `awc`. [#2425]
- `error` field from `Response`. [#2205]
- `downcast` and `downcast_get_type_id` macros. [#2291]
- Down-casting for `MessageBody` types; use standard `Any` trait. [#2183]
[#1813]: https://github.com/actix/actix-web/pull/1813
[#1845]: https:... |
rust_dataset_chunk_1421 | rust_dataset.txt | 1,421 | 512 | /actix-web/pull/2148
[#2152]: https://github.com/actix/actix-web/pull/2152
[#2158]: https://github.com/actix/actix-web/pull/2158
[#2159]: https://github.com/actix/actix-web/pull/2159
[#2161]: https://github.com/actix/actix-web/pull/2161
[#2171]: https://github.com/actix/actix-web/pull/2171
[#2183]: https://github.com/a... |
rust_dataset_chunk_1422 | rust_dataset.txt | 1,422 | 512 | 6
[#2467]: https://github.com/actix/actix-web/pull/2467
[#2468]: https://github.com/actix/actix-web/pull/2468
[#2470]: https://github.com/actix/actix-web/pull/2470
[#2474]: https://github.com/actix/actix-web/pull/2474
[#2483]: https://github.com/actix/actix-web/pull/2483
[#2486]: https://github.com/actix/actix-web/pull... |
rust_dataset_chunk_1423 | rust_dataset.txt | 1,423 | 512 | github.com/actix/actix-web/pull/2660
[00ba8d55]: https://github.com/actix/actix-web/commit/00ba8d55492284581695d824648590715a8bd386
<details>
<summary>3.0.0 Pre-Releases</summary>
## 3.0.0-rc.4
### Fixed
- Fix h1 dispatcher panic. [1ce58ecb]
[1ce58ecb]: https://github.com/actix/actix-web/commit/1ce58ecb305c60e51db... |
rust_dataset_chunk_1424 | rust_dataset.txt | 1,424 | 512 | 1]
- Rename `h1::Codec::{keepalive_enabled => keep_alive_enabled}`. [#2611]
- Rename `h1::ClientCodec::{keepalive => keep_alive}`. [#2611]
- Rename `h1::ClientPayloadCodec::{keepalive => keep_alive}`. [#2611]
- `ServiceConfig::keep_alive` now returns a `KeepAlive`. [#2611]
### Fixed
- HTTP/1.1 dispatcher correctly us... |
rust_dataset_chunk_1425 | rust_dataset.txt | 1,425 | 512 | smallest non-zero value. [#2501]
- `QualityItem::min` semantics changed with `QualityItem::MIN`. [#2501]
- Rename `ContentEncoding::{Br => Brotli}`. [#2501]
- Rename `header::EntityTag::{weak => new_weak, strong => new_strong}`. [#2565]
- Minimum supported Rust version (MSRV) is now 1.54.
### Fixed
- `ContentEncodin... |
rust_dataset_chunk_1426 | rust_dataset.txt | 1,426 | 512 | trait `IntoHeaderValue => TryIntoHeaderValue`. [#2510]
### Removed
- `MessageBody::{is_complete_body,take_complete_body}`. [#2522]
[#2510]: https://github.com/actix/actix-web/pull/2510
[#2522]: https://github.com/actix/actix-web/pull/2522
## 3.0.0-beta.15
### Added
- Add timeout for canceling HTTP/2 server side ... |
rust_dataset_chunk_1427 | rust_dataset.txt | 1,427 | 512 | now require `Into<Response<BoxBody>>`. [#2468]
- `From` implementations on error types now return a `Response<BoxBody>`. [#2468]
- `ResponseBuilder::body(B)` now returns `Response<EitherBody<B>>`. [#2468]
- `ResponseBuilder::finish()` now returns `Response<EitherBody<()>>`. [#2468]
### Removed
- `ResponseBuilder::st... |
rust_dataset_chunk_1428 | rust_dataset.txt | 1,428 | 512 | 3.0.0-rc.1`. [#2474]
[#2467]: https://github.com/actix/actix-web/pull/2467
[#2470]: https://github.com/actix/actix-web/pull/2470
[#2474]: https://github.com/actix/actix-web/pull/2474
## 3.0.0-beta.13
### Added
- `body::AnyBody::empty` for quickly creating an empty body. [#2446]
- `body::AnyBody::none` for quickly c... |
rust_dataset_chunk_1429 | rust_dataset.txt | 1,429 | 512 | [#2442]
### Removed
- `client` module. [#2425]
- `trust-dns` feature. [#2425]
[#2425]: https://github.com/actix/actix-web/pull/2425
[#2442]: https://github.com/actix/actix-web/pull/2442
## 3.0.0-beta.11
### Changed
- Updated rustls to v0.20. [#2414]
- Minimum supported Rust version (MSRV) is now 1.52.
[#2414]: ... |
rust_dataset_chunk_1430 | rust_dataset.txt | 1,430 | 512 | Re-export `http` crate's `Error` type as `error::HttpError`. [#2171]
- Re-export `StatusCode`, `Method`, `Version` and `Uri` at the crate root. [#2171]
- Re-export `ContentEncoding` and `ConnectionType` at the crate root. [#2171]
- `Response::into_body` that consumes response and returns body type. [#2201]
- `impl Def... |
rust_dataset_chunk_1431 | rust_dataset.txt | 1,431 | 512 | `ResponseBuilder` to `Error`. [#2215]
[#2171]: https://github.com/actix/actix-web/pull/2171
[#2183]: https://github.com/actix/actix-web/pull/2183
[#2196]: https://github.com/actix/actix-web/pull/2196
[#2201]: https://github.com/actix/actix-web/pull/2201
[#2205]: https://github.com/actix/actix-web/pull/2205
[#2215]: h... |
rust_dataset_chunk_1432 | rust_dataset.txt | 1,432 | 512 | /pull/2065
[#2148]: https://github.com/actix/actix-web/pull/2148
[#2152]: https://github.com/actix/actix-web/pull/2152
[#2159]: https://github.com/actix/actix-web/pull/2159
[#2158]: https://github.com/actix/actix-web/pull/2158
[#2161]: https://github.com/actix/actix-web/pull/2161
## 3.0.0-beta.5
### Added
- `client:... |
rust_dataset_chunk_1433 | rust_dataset.txt | 1,433 | 512 | 2035
[#2052]: https://github.com/actix/actix-web/pull/2052
## 3.0.0-beta.3
- No notable changes.
## 3.0.0-beta.2
### Added
- `TryIntoHeaderPair` trait that allows using typed and untyped headers in the same methods. [#1869]
- `ResponseBuilder::insert_header` method which allows using typed headers. [#1869]
- `Resp... |
rust_dataset_chunk_1434 | rust_dataset.txt | 1,434 | 512 | ResponseBuilder::insert_header`. [#1869]
- `ResponseBuilder::header`; use `ResponseBuilder::append_header`. [#1869]
- `TestRequest::with_hdr`; use `TestRequest::default().insert_header()`. [#1869]
- `TestRequest::with_header`; use `TestRequest::default().insert_header()`. [#1869]
- `actors` optional feature. [#1969]
- ... |
rust_dataset_chunk_1435 | rust_dataset.txt | 1,435 | 512 | ConnectError::SslHandshakeError` and re-export of `HandshakeError`. due to the removal of this type from `tokio-openssl` crate. openssl handshake error would return as `ConnectError::SslError`. [#1813]
- Remove `actix-threadpool` dependency. Use `actix_rt::task::spawn_blocking`. Due to this change `actix_threadpool::Bl... |
rust_dataset_chunk_1436 | rust_dataset.txt | 1,436 | 512 | actix-web/pull/1797
## 2.1.0
### Added
- Added more flexible `on_connect_ext` methods for on-connect handling. [#1754]
### Changed
- Upgrade `base64` to `0.13`. [#1744]
- Upgrade `pin-project` to `1.0`. [#1733]
- Deprecate `ResponseBuilder::{if_some, if_true}`. [#1760]
[#1760]: https://github.com/actix/actix-web/... |
rust_dataset_chunk_1437 | rust_dataset.txt | 1,437 | 512 | .0-alpha.4
### Changed
- 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 a `u64` instead of a `usize`.
- Update `base64` dependency to... |
rust_dataset_chunk_1438 | rust_dataset.txt | 1,438 | 512 | accepting `Pin<&mut Self>` instead of `&mut self` in the poll_next().
- MessageBody is not implemented for &'static [u8] anymore.
### Fixed
- Allow `SameSite=None` cookies to be sent in a response.
## 1.0.1
### Fixed
- Poll upgrade service's readiness from HTTP service handlers
- Replace brotli with brotli2 #1224... |
rust_dataset_chunk_1439 | rust_dataset.txt | 1,439 | 512 | a panic in the HTTP2 handshake in client HTTP requests (#1031)
## 0.2.8
### Added
- Add `rustls` support
- Add `Clone` impl for `HeaderMap`
### Fixed
- awc client panic #1016
- Invalid response with compression middleware enabled, but compression-related features disabled #997
## 0.2.7
### Added
- Add support ... |
rust_dataset_chunk_1440 | rust_dataset.txt | 1,440 | 512 | 0
### Added
- Expose peer addr via `Request::peer_addr()` and `RequestHead::peer_addr`
### Changed
- `actix_http::encoding` always available
- use trust-dns-resolver 0.11.0
## 0.1.0-alpha.5
### Added
- Allow to use custom service for upgrade requests
- Added `h1::SendResponse` future.
### Changed
- MessageBody... |
rust_dataset_chunk_1441 | rust_dataset.txt | 1,441 | 512 | .rs/crate/actix-http/2.22.0)
[](https://crates.io/crates/actix-http)
[](https://discord.gg/NWpN5mmg3x)
<!-- prettier-ignore-end -->
## Examples
```rust
use std::{env... |
rust_dataset_chunk_1442 | rust_dataset.txt | 1,442 | 512 | supported Rust version (MSRV) is now 1.59.
## 3.0.0
- `TestServer::stop` is now async and will wait for the server and system to shutdown. [#2442]
- Added `TestServer::client_headers` method. [#2097]
- Update `actix-server` dependency to `2`.
- Update `actix-tls` dependency to `3`.
- Update `bytes` to `1.0`. [#1813]... |
rust_dataset_chunk_1443 | rust_dataset.txt | 1,443 | 512 | `2.0.0-beta.9`. [#2442]
- Minimum supported Rust version (MSRV) is now 1.52.
[#2442]: https://github.com/actix/actix-web/pull/2442
## 3.0.0-beta.5
- Minimum supported Rust version (MSRV) is now 1.51.
## 3.0.0-beta.4
- Added `TestServer::client_headers` method. [#2097]
[#2097]: https://github.com/actix/actix-web/... |
rust_dataset_chunk_1444 | rust_dataset.txt | 1,444 | 512 | override current `System`
## 0.2.4
- Update actix-server to 0.6
## 0.2.3
- Add `delete`, `options`, `patch` methods to `TestServerRunner`
## 0.2.2
- Add .put() and .sput() methods
## 0.2.1
- Add license files
## 0.2.0
- Update awc and actix-http deps
## 0.1.1
- Always make new connection for http client
#... |
rust_dataset_chunk_1445 | rust_dataset.txt | 1,445 | 512 | ponsors
<a href="https://www.blacksmith.sh/">
<img src="https://raw.githubusercontent.com/actix/actix-web/main/.github/sponsors/blacksmith.png" alt="CI powered by Blacksmith" width="280" />
</a>
--- FILE: actix-web/actix-multipart/CHANGES.md ---
# Changes
## Unreleased
## 0.8.9
- Respond with `413 Payload Too L... |
rust_dataset_chunk_1446 | rust_dataset.txt | 1,446 | 512 | 1.88.
- Update `rand` dependency to `0.10`.
[#3577]: https://github.com/actix/actix-web/pull/3577
[#3575]: https://github.com/actix/actix-web/issues/3575
## 0.7.2
- Fix re-exported version of `actix-multipart-derive`.
## 0.7.1
- Expose `LimitExceeded` error type.
## 0.7.0
- Add `MultipartError::ContentTypeIncomp... |
rust_dataset_chunk_1447 | rust_dataset.txt | 1,447 | 512 | 4.0-beta.10`.
## 0.4.0-beta.10
- No significant changes since `0.4.0-beta.9`.
## 0.4.0-beta.9
- Polling `Field` after dropping `Multipart` now fails immediately instead of hanging forever. [#2463]
[#2463]: https://github.com/actix/actix-web/pull/2463
## 0.4.0-beta.8
- Ensure a correct Content-Disposition header ... |
rust_dataset_chunk_1448 | rust_dataset.txt | 1,448 | 512 | .1
## 0.3.0-alpha.1
- Update `actix-web` to 3.0.0-alpha.3
- Bump minimum supported Rust version to 1.40
- Minimize `futures` dependencies
- Remove the unused `time` dependency
- Fix missing `std::error::Error` implement for `MultipartError`.
## 0.2.0
- Release
## 0.2.0-alpha.4
- Multipart handling now handles Pen... |
rust_dataset_chunk_1449 | rust_dataset.txt | 1,449 | 512 | 6.0
- Add `MultipartForm` derive macro.
--- FILE: actix-web/actix-multipart-derive/README.md ---
# `actix-multipart-derive`
> The derive macro implementation for actix-multipart-derive.
<!-- prettier-ignore-start -->
[](https://crate... |
rust_dataset_chunk_1450 | rust_dataset.txt | 1,450 | 512 | ields.io/badge/rustc-1.89+-ab6000.svg)

<br />
[](https://deps.rs/crate/actix-multipart/0.8.9)
[](... |
rust_dataset_chunk_1451 | rust_dataset.txt | 1,451 | 512 | Env::new().default_filter_or("info"));
HttpServer::new(move || {
App::new()
.service(post_video)
.wrap(Logger::default())
// Also increase the global total limit to 100MiB.
.app_data(MultipartFormConfig::default().total_limit(100 * 1024 * 1024))
})
.w... |
rust_dataset_chunk_1452 | rust_dataset.txt | 1,452 | 512 | `i32` deserialization. [#2876]
- Minimum supported Rust version (MSRV) is now 1.59 due to transitive `time` dependency.
[#2876]: https://github.com/actix/actix-web/pull/2876
## 0.5.0
### Added
- Add `Path::as_str`. [#2590]
- Add `ResourceDef::set_name`. [#373][net#373]
- Add `RouterBuilder::push`. [#2612]
- Implem... |
rust_dataset_chunk_1453 | rust_dataset.txt | 1,453 | 512 | `ResourceDef::{resource_path_named => resource_path_from_map}`. [#371][net#371]
- Rename `Router::{*_checked => *_fn}`. [#373][net#373]
- Replace `Option<U>` with `U` in `Router` API. [#2612]
- `Resource` trait now uses an associated type, `Path`, instead of a generic parameter. [#2568]
- `ResourceDef::pattern` now re... |
rust_dataset_chunk_1454 | rust_dataset.txt | 1,454 | 512 | actix-net/pull/368
[net#368]: https://github.com/actix/actix-net/pull/368
[net#370]: https://github.com/actix/actix-net/pull/370
[net#371]: https://github.com/actix/actix-net/pull/371
[net#372]: https://github.com/actix/actix-net/pull/372
[net#373]: https://github.com/actix/actix-net/pull/373
[net#378]: https://github.... |
rust_dataset_chunk_1455 | rust_dataset.txt | 1,455 | 512 | /actix-web/pull/2568
## 0.5.0-beta.4
- `PathDeserializer` now decodes all percent encoded characters in dynamic segments. [#2566]
- Minimum supported Rust version (MSRV) is now 1.54.
[#2566]: https://github.com/actix/actix-net/pull/2566
## 0.5.0-beta.3
- Minimum supported Rust version (MSRV) is now 1.52.
## 0.5.0... |
rust_dataset_chunk_1456 | rust_dataset.txt | 1,456 | 512 | `IntoPatterns` trait, adding a `Patterns` enum. [#372][net#372]
- Implement `IntoPatterns` for `bytestring::ByteString`. [#372][net#372]
- Rename `Path::{len => segment_count}` to be more descriptive of it's purpose. [#370][net#370]
- Rename `ResourceDef::{resource_path => resource_path_from_iter}`. [#371][net#371]
- ... |
rust_dataset_chunk_1457 | rust_dataset.txt | 1,457 | 512 | bug where `Path` could return a malformed string after percent decoding. [#359][net#359]
- Methods `Path::{add, add_static}` now take `impl Into<Cow<'static, str>>`. [#345][net#345]
[net#345]: https://github.com/actix/actix-net/pull/345
[net#357]: https://github.com/actix/actix-net/pull/357
[net#359]: https://github.... |
rust_dataset_chunk_1458 | rust_dataset.txt | 1,458 | 512 | --- FILE: actix-web/actix-router/README.md ---
# `actix-router`
<!-- prettier-ignore-start -->
[](https://crates.io/crates/actix-router)
[](https://docs.rs/actix-router/0.5.5)
!... |
rust_dataset_chunk_1459 | rust_dataset.txt | 1,459 | 512 | ClientResponse`, are now re-exported.
- Minimum supported Rust version (MSRV) is now 1.72.
## 0.1.3
- Add `TestServerConfig::rustls_0_22()` method for Rustls v0.22 support behind new `rustls-0_22` crate feature.
## 0.1.2
- Add `TestServerConfig::rustls_021()` method for Rustls v0.21 support behind new `rustls-0_21`... |
rust_dataset_chunk_1460 | rust_dataset.txt | 1,460 | 512 | /actix-web/pull/2408
## 0.1.0-beta.6
- No significant changes from `0.1.0-beta.5`.
## 0.1.0-beta.5
- Updated rustls to v0.20. [#2414]
- Minimum supported Rust version (MSRV) is now 1.52.
[#2414]: https://github.com/actix/actix-web/pull/2414
## 0.1.0-beta.4
- Minimum supported Rust version (MSRV) is now 1.51.
##... |
rust_dataset_chunk_1461 | rust_dataset.txt | 1,461 | 512 | tools for Actix Web applications.
The main integration testing tool is [`TestServer`]. It spawns a real HTTP server on an unused port and provides methods that use a real HTTP client. Therefore, it is much closer to real-world cases than using `init_service`, which skips HTTP encoding and decoding.
## Examples
```r... |
rust_dataset_chunk_1462 | rust_dataset.txt | 1,462 | 512 | .11`.
## 4.0.0-beta.11
- No significant changes since `4.0.0-beta.10`.
## 4.0.0-beta.10
- Minimum supported Rust version (MSRV) is now 1.54.
## 4.0.0-beta.9
- No significant changes since `4.0.0-beta.8`.
## 4.0.0-beta.8
- Add `ws:WsResponseBuilder` for building WebSocket session response. [#1920]
- Deprecate `w... |
rust_dataset_chunk_1463 | rust_dataset.txt | 1,463 | 512 | .1
- Update the actix-web dependency to 3.0.0-alpha.1
- Update the actix dependency to 0.10.0-alpha.2
- Update the actix-http dependency to 2.0.0-alpha.3
## 2.0.0
- Release
## 2.0.0-alpha.1
- Migrate to actix-web 2.0.0
## 1.0.4
- Allow comma-separated websocket subprotocols without spaces (#1172)
## 1.0.3
- Up... |
rust_dataset_chunk_1464 | rust_dataset.txt | 1,464 | 512 | actors.svg)](https://crates.io/crates/actix-web-actors)
[](https://discord.gg/NWpN5mmg3x)
<!-- prettier-ignore-end -->
## Sponsors
<a href="https://www.blacksmith.sh/">
<img src="https://raw.githubusercontent.com/actix/act... |
rust_dataset_chunk_1465 | rust_dataset.txt | 1,465 | 512 | Document that `HttpServer::on_connect()` must be called before `bind()`.
- Minimum supported Rust version (MSRV) is now 1.89.
## 4.17.0
- Fix `Accept` parsing and preference selection for quality parameters before media type parameters and for quoted parameter values containing semicolons.
- Update `zstd` dependency... |
rust_dataset_chunk_1466 | rust_dataset.txt | 1,466 | 512 | actix-web/issues/3100
## 4.13.0
- Minimum supported Rust version (MSRV) is now 1.88.
- Improve HTTP/2 upload throughput by increasing default flow control window sizes. [#3638]
- Add `HttpServer::{h2_initial_window_size, h2_initial_connection_window_size}` methods for tuning. [#3638]
- Add `HttpRequest::url_for_map` ... |
rust_dataset_chunk_1467 | rust_dataset.txt | 1,467 | 512 | 8 header values in `Logger` middleware.
- Add `HttpServer::shutdown_signal()` method.
- Mark `HttpServer` as `#[must_use]`.
- Allow SVG images to be compressed by the `Compress` middleware.
- Ignore `Host` header in `Host` guard when connection protocol is HTTP/2.
- Re-export `mime` dependency.
- Update `brotli` depend... |
rust_dataset_chunk_1468 | rust_dataset.txt | 1,468 | 512 | v5.0 breaking changes, starting only with `compat-routing-macros-force-pub`.
- Implement `From<Box<dyn ResponseError>>` for `Error`.
## 4.6.0
### Added
- Add `unicode` crate feature (on-by-default) to switch between `regex` and `regex-lite` as a trade-off between full unicode support and binary size.
- Add `rustls-... |
rust_dataset_chunk_1469 | rust_dataset.txt | 1,469 | 512 | 0_20` crate feature, which the existing `rustls` feature now aliases.
### Changed
- Handler functions can now receive up to 16 extractor parameters.
- The `Compress` middleware no longer compresses image or video content.
- Hide sensitive header values in `HttpRequest`'s `Debug` output.
- Minimum supported Rust versi... |
rust_dataset_chunk_1470 | rust_dataset.txt | 1,470 | 512 | [#2871]: https://github.com/actix/actix-web/pull/2871
## 4.2.0
### Added
- Add `#[routes]` macro to support multiple paths for one handler. [#2718]
- Add `ServiceRequest::{parts, request}()` getter methods. [#2786]
- Add configuration options for TLS handshake timeout via `HttpServer::{rustls, openssl}_with_config` ... |
rust_dataset_chunk_1471 | rust_dataset.txt | 1,471 | 512 | -tags` to `0.3`.
- Updated `rand` to `0.8`.
- Updated `rustls` to `0.20`. [#2414]
- Updated `tokio` to `1`.
### Added
- Crate Features:
- `cookies`; enabled by default. [#2619]
- `compress-brotli`; enabled by default. [#2618]
- `compress-gzip`; enabled by default. [#2618]
- `compress-zstd`; enabled by default... |
rust_dataset_chunk_1472 | rust_dataset.txt | 1,472 | 512 | for setting block thread pool. [#2200]
- `middleware::Logger::log_target()` to allow customize. [#2594]
- `Responder::customize()` trait method that wraps responder in `CustomizeResponder`. [#2510]
- `Route::service()` for using hand-written services as handlers. [#2262]
- `ServiceResponse::into_parts()`. [#24... |
rust_dataset_chunk_1473 | rust_dataset.txt | 1,473 | 512 | ()`. Old name is deprecated. [#2518]
- Rename `test::{read_response => call_and_read_body}()`. Old name is deprecated. [#2518]
- Traits:
- `guard::Guard::check` now receives a `&GuardContext`. [#2552]
- `FromRequest::Config` associated type was removed. [#2233]
- `Responder` trait has been reworked and now `Res... |
rust_dataset_chunk_1474 | rust_dataset.txt | 1,474 | 512 | `web::Json<T>` extractor. [#2010]
- `dev::ServiceRequest::{into_parts, from_parts}()` can no longer fail. [#1893]
- `dev::ServiceRequest::from_request` can no longer fail. [#1893]
- `dev::ServiceResponse::error_response()` now uses body type of `BoxBody`. [#2201]
- `dev::ServiceResponse::map_body()` closure re... |
rust_dataset_chunk_1475 | rust_dataset.txt | 1,475 | 512 | now convert error types. [#2581]
- Compress middleware will return `406 Not Acceptable` when no content encoding is acceptable to the client. [#2344]
- Adjusted default JSON payload limit to 2MB (from 32kb). [#2162]
- All error trait bounds in server service builders have changed from `Into<Error>` to `Into<Resp... |
rust_dataset_chunk_1476 | rust_dataset.txt | 1,476 | 512 | `]: https://rustsec.org/advisories/RUSTSEC-2020-0071.html
### Removed
- Crate Features:
- `compress` feature. [#2065]
- Functions:
- `test::load_stream` and `test::load_body`; replace usage with `body::to_bytes`. [#2518]
- `test::start_with`; moved to new `actix-test` crate. [#2112]
- `test::start`; moved to ... |
rust_dataset_chunk_1477 | rust_dataset.txt | 1,477 | 512 | ]
- Implementation of `Future` for `HttpResponse`. [#2601]
- Misc:
- The `client` module was removed; use the `awc` crate directly. [871ca5e4]
- `middleware::{normalize, err_handlers}` modules; all necessary middleware types are now exposed in the `middleware` module.
[#1812]: https://github.com/actix/actix-web/... |
rust_dataset_chunk_1478 | rust_dataset.txt | 1,478 | 512 | [#2093]: https://github.com/actix/actix-web/pull/2093
[#2094]: https://github.com/actix/actix-web/pull/2094
[#2097]: https://github.com/actix/actix-web/pull/2097
[#2112]: https://github.com/actix/actix-web/pull/2112
[#2148]: https://github.com/actix/actix-web/pull/2148
[#2162]: https://github.com/actix/actix-web/pull/2... |
rust_dataset_chunk_1479 | rust_dataset.txt | 1,479 | 512 | /actix/actix-web/pull/2384
[#2401]: https://github.com/actix/actix-web/pull/2401
[#2403]: https://github.com/actix/actix-web/pull/2403
[#2409]: https://github.com/actix/actix-web/pull/2409
[#2414]: https://github.com/actix/actix-web/pull/2414
[#2423]: https://github.com/actix/actix-web/pull/2423
[#2430]: https://github... |
rust_dataset_chunk_1480 | rust_dataset.txt | 1,480 | 512 | ull/2516
[#2518]: https://github.com/actix/actix-web/pull/2518
[#2523]: https://github.com/actix/actix-web/pull/2523
[#2526]: https://github.com/actix/actix-web/pull/2526
[#2552]: https://github.com/actix/actix-web/pull/2552
[#2554]: https://github.com/actix/actix-web/pull/2554
[#2555]: https://github.com/actix/actix-w... |
rust_dataset_chunk_1481 | rust_dataset.txt | 1,481 | 512 | e4ae2bdc22d1ea02701c2992fa8d04aed7
<details>
<summary>4.0.0 Pre-Releases</summary>
## 4.0.0-rc.3
### Changed
- `middleware::Condition` gained a broader compatibility; `Compat` is needed in fewer cases. [#2635]
### Added
- Implement `Responder` for `Vec<u8>`. [#2625]
- Re-export `KeepAlive` in `http` mod. [#2625]
... |
rust_dataset_chunk_1482 | rust_dataset.txt | 1,482 | 512 | 0-beta.20
### Added
- `GuardContext::header` [#2569]
- `ServiceConfig::configure` to allow easy nesting of configuration functions. [#1988]
### Changed
- `HttpResponse` can now be used as a `Responder` with any body type. [#2567]
- `Result` extractor wrapper can now convert error types. [#2581]
- Associated types i... |
rust_dataset_chunk_1483 | rust_dataset.txt | 1,483 | 512 | 4.0.0-beta.18
### Changed
- Update `cookie` dependency (re-exported) to `0.16`. [#2555]
- Minimum supported Rust version (MSRV) is now 1.54.
### Security
- `cookie` upgrade addresses [`RUSTSEC-2020-0071`].
[#2555]: https://github.com/actix/actix-web/pull/2555
[`rustsec-2020-0071`]: https://rustsec.org/advisories/R... |
rust_dataset_chunk_1484 | rust_dataset.txt | 1,484 | 512 | [#2510]
- Implement `Debug` for `DefaultHeaders`. [#2510]
### Changed
- Align `DefaultHeader` method terminology, deprecating previous methods. [#2510]
- Response service types in `ErrorHandlers` middleware now use `ServiceResponse<EitherBody<B>>` to allow changing the body type. [#2515]
- Both variants in `ErrorHan... |
rust_dataset_chunk_1485 | rust_dataset.txt | 1,485 | 512 | ranked}`. [#2480]
- Rename `Accept::{mime_preference => preference}`. [#2480]
- Un-deprecate `App::data_factory`. [#2484]
- `HttpRequest::url_for` no longer constructs URLs with query or fragment components. [#2430]
- Remove `B` (body) type parameter on `App`. [#2493]
- Add `B` (body) type parameter on `Scope`. [#2492... |
rust_dataset_chunk_1486 | rust_dataset.txt | 1,486 | 512 | - Compress middleware's response type is now `AnyBody<Encoder<B>>`. [#2448]
### Fixed
- Relax `Unpin` bound on `S` (stream) parameter of `HttpResponseBuilder::streaming`. [#2448]
### Removed
- `dev::ResponseBody` re-export; is function is replaced by the new `dev::AnyBody` enum. [#2446]
[#2446]: https://github.com... |
rust_dataset_chunk_1487 | rust_dataset.txt | 1,487 | 512 | /actix/actix-web/pull/2403
[#2409]: https://github.com/actix/actix-web/pull/2409
[#2414]: https://github.com/actix/actix-web/pull/2414
## 4.0.0-beta.9
### Added
- Re-export actix-service `ServiceFactory` in `dev` module. [#2325]
### Changed
- Compress middleware will return 406 Not Acceptable when no content encod... |
rust_dataset_chunk_1488 | rust_dataset.txt | 1,488 | 512 | ix-web/pull/2262
[#2263]: https://github.com/actix/actix-web/pull/2263
[#2282]: https://github.com/actix/actix-web/pull/2282
[#2288]: https://github.com/actix/actix-web/pull/2288
## 4.0.0-beta.7
### Added
- `HttpServer::worker_max_blocking_threads` for setting block thread pool. [#2200]
### Changed
- Adjusted defa... |
rust_dataset_chunk_1489 | rust_dataset.txt | 1,489 | 512 | 2065]
### Changed
- Most error types are now marked `#[non_exhaustive]`. [#2148]
- Methods on `ContentDisposition` that took `T: AsRef<str>` now take `impl AsRef<str>`.
[#2065]: https://github.com/actix/actix-web/pull/2065
[#2148]: https://github.com/actix/actix-web/pull/2148
## 4.0.0-beta.5
### Added
- `Header` ... |
rust_dataset_chunk_1490 | rust_dataset.txt | 1,490 | 512 | -web/pull/1981
[#2010]: https://github.com/actix/actix-web/pull/2010
## 4.0.0-beta.3
- Update `actix-web-codegen` to `0.5.0-beta.1`.
## 4.0.0-beta.2
### Added
- The method `Either<web::Json<T>, web::Form<T>>::into_inner()` which returns the inner type for whichever variant was created. Also works for `Either<web::... |
rust_dataset_chunk_1491 | rust_dataset.txt | 1,491 | 512 | /actix/actix-web/pull/1893
[#1894]: https://github.com/actix/actix-web/pull/1894
[#1869]: https://github.com/actix/actix-web/pull/1869
[#1905]: https://github.com/actix/actix-web/pull/1905
[#1906]: https://github.com/actix/actix-web/pull/1906
[#1933]: https://github.com/actix/actix-web/pull/1933
[#1957]: https://github... |
rust_dataset_chunk_1492 | rust_dataset.txt | 1,492 | 512 | 5
[#1875]: https://github.com/actix/actix-web/pull/1875
[#1878]: https://github.com/actix/actix-web/pull/1878
</details>
## 3.3.3
### Changed
- Soft-deprecate `NormalizePath::default()`, noting upcoming behavior change in v4. [#2529]
[#2529]: https://github.com/actix/actix-web/pull/2529
## 3.3.2
### Fixed
- Rem... |
rust_dataset_chunk_1493 | rust_dataset.txt | 1,493 | 512 | [#1723]: https://github.com/actix/actix-web/pull/1723
[#1743]: https://github.com/actix/actix-web/pull/1743
[#1748]: https://github.com/actix/actix-web/pull/1748
[#1750]: https://github.com/actix/actix-web/pull/1750
[#1754]: https://github.com/actix/actix-web/pull/1754
[#1757]: https://github.com/actix/actix-web/pull/1... |
rust_dataset_chunk_1494 | rust_dataset.txt | 1,494 | 512 | `FormConfig` and `JsonConfig` configurations are now also considered when set using `App::data`. [#1641]
- `HttpServer::maxconn` is renamed to the more expressive `HttpServer::max_connections`. [#1655]
- `HttpServer::maxconnrate` is renamed to the more expressive `HttpServer::max_connection_rate`. [#1655]
[#1639]: ht... |
rust_dataset_chunk_1495 | rust_dataset.txt | 1,495 | 512 | for extracting matched resource name.
### Changed
- Fix actix_http::h1::dispatcher so it returns when HW_BUFFER_SIZE is reached. Should reduce peak memory consumption during large uploads. [#1550]
- Migrate cookie handling to `cookie` crate. Actix-web no longer requires `ring` dependency.
- MSRV is now 1.41.1
### F... |
rust_dataset_chunk_1496 | rust_dataset.txt | 1,496 | 512 | - Update the `time` dependency to 0.2.7
- Update `actix-tls` dependency to 2.0.0-alpha.1
- Update `rustls` dependency to 0.17
[#1308]: https://github.com/actix/actix-web/pull/1308
## 2.0.0
### Changed
- Rename `HttpServer::start()` to `HttpServer::run()`
- Allow to gracefully stop test server via `TestServer::stop... |
rust_dataset_chunk_1497 | rust_dataset.txt | 1,497 | 512 | ` and `Payload`
- Add `HttpServer::listen_uds` for ability to listen on UDS FD rather than path, which is useful for example with systemd.
### Changed
- Make UrlEncodedError::Overflow more informative
- Use actix-testing for testing utils
## 1.0.7
### Fixed
- Request Extensions leak #1062
## 1.0.6
### Added
-... |
rust_dataset_chunk_1498 | rust_dataset.txt | 1,498 | 512 | patch from #637 #894
### Fixed
- HttpRequest::url_for is broken with nested scopes #915
## 1.0.0
### Added
- Add `Scope::configure()` method.
- Add `ServiceRequest::set_payload()` method.
- Add `test::TestRequest::set_json()` convenience method to automatically serialize data and set header in test requests.
-... |
rust_dataset_chunk_1499 | rust_dataset.txt | 1,499 | 512 | to override status code and headers.
- Store visit and login timestamp in the identity cookie #502
### Changed
- `.to_async()` handler can return `Responder` type #792
### Fixed
- Fix async web::Data factory handling
## 1.0.0-beta.1
### Added
- Add helper functions for reading test response body, `test::read_r... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.