From 1e30dad3b45ae76a242e87a5da14f05e9830d103 Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Mon, 6 Dec 2021 14:38:02 +0000 Subject: [PATCH] update changelog --- CHANGES.md | 8 ++------ actix-http/CHANGES.md | 5 +++-- actix-http/tests/test_openssl.rs | 2 +- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index b33c0371c..667d693c8 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -7,30 +7,26 @@ * `Range` typed header. [#2485] * `HttpResponse::map_into_{left,right}_body` and `HttpResponse::map_into_boxed_body`. [#2468] * `ServiceResponse::map_into_{left,right}_body` and `HttpResponse::map_into_boxed_body`. [#2468] -* `HttpServer::on_connect` now receives a `CloneableExtensions` object. [#2327] - -[#2325]: https://github.com/actix/actix-web/pull/2325 -[#2327]: https://github.com/actix/actix-web/pull/2327 +* Connection data set through the `HttpServer::on_connect` callback is now accessible only from the new `HttpRequest::conn_data()` method. [#2491] ### Changed * Rename `Accept::{mime_precedence => 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] -* `HttpServer::on_connect` now receives a `CloneableExtensions` object. [#2327] ### Fixed * Accept wildcard `*` items in `AcceptLanguage`. [#2480] * Re-exports `dev::{BodySize, MessageBody, SizedStream}`. They are exposed through the `body` module. [#2468] * Typed headers containing lists that require one or more items now enforce this minimum. [#2482] -[#2327]: https://github.com/actix/actix-web/pull/2327 [#2430]: https://github.com/actix/actix-web/pull/2430 [#2468]: https://github.com/actix/actix-web/pull/2468 [#2480]: https://github.com/actix/actix-web/pull/2480 [#2482]: https://github.com/actix/actix-web/pull/2482 [#2484]: https://github.com/actix/actix-web/pull/2484 [#2485]: https://github.com/actix/actix-web/pull/2485 +[#2491]: https://github.com/actix/actix-web/pull/2491 ## 4.0.0-beta.13 - 2021-11-30 diff --git a/actix-http/CHANGES.md b/actix-http/CHANGES.md index 133c1d9fb..526ef621c 100644 --- a/actix-http/CHANGES.md +++ b/actix-http/CHANGES.md @@ -14,7 +14,8 @@ * `header::QualityItem::{max, min}`. [#2486] * `header::Quality::{MAX, MIN}`. [#2486] * `impl Display` for `header::Quality`. [#2486] -* `CloneableExtensions` object for use in `on_connect` handlers. [#2327] +* Connection data set through the `on_connect_ext` callbacks is now accessible only from the new `Request::conn_data()` method. [#2491] +* `Request::take_conn_data()`. [#2491] ### Changed * Rename `body::BoxBody::{from_body => new}`. [#2468] @@ -24,7 +25,6 @@ * `From` implementations on error types now return a `Response`. [#2468] * `ResponseBuilder::body(B)` now returns `Response>`. [#2468] * `ResponseBuilder::finish()` now returns `Response>`. [#2468] -* `on_connect_ext` methods now receive a `CloneableExtensions` object. [#2327] ### Removed * `ResponseBuilder::streaming`. [#2468] @@ -42,6 +42,7 @@ [#1920]: https://github.com/actix/actix-web/pull/1920 [#2486]: https://github.com/actix/actix-web/pull/2486 [#2488]: https://github.com/actix/actix-web/pull/2488 +[#2491]: https://github.com/actix/actix-web/pull/2491 ## 3.0.0-beta.14 - 2021-11-30 diff --git a/actix-http/tests/test_openssl.rs b/actix-http/tests/test_openssl.rs index 3022b1411..8ba41b4bd 100644 --- a/actix-http/tests/test_openssl.rs +++ b/actix-http/tests/test_openssl.rs @@ -8,7 +8,7 @@ use actix_http::{ body::{BodyStream, BoxBody, SizedStream}, error::PayloadError, header::{self, HeaderValue}, - Error, HttpMessage, HttpService, Method, Request, Response, StatusCode, Version, + Error, HttpService, Method, Request, Response, StatusCode, Version, }; use actix_http_test::test_server; use actix_service::{fn_service, ServiceFactoryExt};