mirror of https://github.com/fafhrd91/actix-web
remove version extractor
This commit is contained in:
parent
68e1ec96ad
commit
cb2d7b5dbe
|
@ -2,7 +2,7 @@
|
|||
|
||||
## Unreleased - 2021-xx-xx
|
||||
### Added
|
||||
* Add extractors for `Version`, `Uri` and `Method`. [#2263]
|
||||
* Add extractors for `Uri` and `Method`. [#2263]
|
||||
* Add extractor for `ConnectionInfo` and `PeerAddr`. [#2263]
|
||||
|
||||
### Changed
|
||||
|
|
|
@ -244,16 +244,6 @@ impl FromRequest for Uri {
|
|||
}
|
||||
}
|
||||
|
||||
impl FromRequest for Version {
|
||||
type Error = Infallible;
|
||||
type Future = Ready<Result<Version, Infallible>>;
|
||||
type Config = ();
|
||||
|
||||
fn from_request(req: &HttpRequest, _: &mut Payload) -> Self::Future {
|
||||
ok(req.version())
|
||||
}
|
||||
}
|
||||
|
||||
/// Extract the request's method.
|
||||
///
|
||||
/// ## Example
|
||||
|
|
Loading…
Reference in New Issue