diff --git a/server/CHANGES.md b/server/CHANGES.md index 9db194bb..baaa6921 100644 --- a/server/CHANGES.md +++ b/server/CHANGES.md @@ -1,4 +1,7 @@ # unreleased 0.5.0 +## Add +- add `net::Listen` trait for customizable connection accepting + ## Change - bump MSRV to `1.85` and Rust edition 2024 - rename `net::AsListener` trait to `IntoListener`. improve it's interface and reduce possibility of panicing diff --git a/web/CHANGES.md b/web/CHANGES.md index 73bc78ff..b6315d92 100644 --- a/web/CHANGES.md +++ b/web/CHANGES.md @@ -29,6 +29,7 @@ } } ``` +- `HttpServer::listen` accepts generic type impl `xitca_server::net::IntoListener` trait. The concrete type must be known before received by said function - change `codegen::error_impl` marco to coop with the change to `Error` type. the impl method must receive `error::Request` type as `WebContext`'s type param. Example: ```rust struct CustomError;