mirror of https://github.com/fafhrd91/actix-web
update docs
This commit is contained in:
parent
d500ecbb77
commit
ba5bdd955d
|
@ -13,6 +13,8 @@
|
||||||
* Rename `Accept::{mime_preference => preference}`. [#2480]
|
* Rename `Accept::{mime_preference => preference}`. [#2480]
|
||||||
* Un-deprecate `App::data_factory`. [#2484]
|
* Un-deprecate `App::data_factory`. [#2484]
|
||||||
* `HttpRequest::url_for` no longer constructs URLs with query or fragment components. [#2430]
|
* `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]
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
* Accept wildcard `*` items in `AcceptLanguage`. [#2480]
|
* Accept wildcard `*` items in `AcceptLanguage`. [#2480]
|
||||||
|
@ -25,6 +27,8 @@
|
||||||
[#2482]: https://github.com/actix/actix-web/pull/2482
|
[#2482]: https://github.com/actix/actix-web/pull/2482
|
||||||
[#2484]: https://github.com/actix/actix-web/pull/2484
|
[#2484]: https://github.com/actix/actix-web/pull/2484
|
||||||
[#2485]: https://github.com/actix/actix-web/pull/2485
|
[#2485]: https://github.com/actix/actix-web/pull/2485
|
||||||
|
[#2492]: https://github.com/actix/actix-web/pull/2492
|
||||||
|
[#2493]: https://github.com/actix/actix-web/pull/2493
|
||||||
|
|
||||||
|
|
||||||
## 4.0.0-beta.13 - 2021-11-30
|
## 4.0.0-beta.13 - 2021-11-30
|
||||||
|
|
20
src/scope.rs
20
src/scope.rs
|
@ -298,13 +298,9 @@ where
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Registers middleware, in the form of a middleware component (type),
|
/// Registers middleware, in the form of a middleware component (type), that runs during inbound
|
||||||
/// that runs during inbound processing in the request
|
/// processing in the request life-cycle (request -> response), modifying request as necessary,
|
||||||
/// life-cycle (request -> response), modifying request as
|
/// across all requests managed by the *Scope*.
|
||||||
/// necessary, across all requests managed by the *Scope*. Scope-level
|
|
||||||
/// middleware is more limited in what it can modify, relative to Route or
|
|
||||||
/// Application level middleware, in that Scope-level middleware can not modify
|
|
||||||
/// ServiceResponse.
|
|
||||||
///
|
///
|
||||||
/// Use middleware when you need to read or modify *every* request in some way.
|
/// Use middleware when you need to read or modify *every* request in some way.
|
||||||
pub fn wrap<M, B1>(
|
pub fn wrap<M, B1>(
|
||||||
|
@ -342,13 +338,11 @@ where
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Registers middleware, in the form of a closure, that runs during inbound
|
/// Registers middleware, in the form of a closure, that runs during inbound processing in the
|
||||||
/// processing in the request life-cycle (request -> response), modifying
|
/// request life-cycle (request -> response), modifying request as necessary, across all
|
||||||
/// request as necessary, across all requests managed by the *Scope*.
|
/// requests managed by the *Scope*.
|
||||||
/// Scope-level middleware is more limited in what it can modify, relative
|
|
||||||
/// to Route or Application level middleware, in that Scope-level middleware
|
|
||||||
/// can not modify ServiceResponse.
|
|
||||||
///
|
///
|
||||||
|
/// # Examples
|
||||||
/// ```
|
/// ```
|
||||||
/// use actix_service::Service;
|
/// use actix_service::Service;
|
||||||
/// use actix_web::{web, App};
|
/// use actix_web::{web, App};
|
||||||
|
|
Loading…
Reference in New Issue