remove version extractor

This commit is contained in:
ibraheemdev 2021-06-22 11:33:50 -04:00
parent 68e1ec96ad
commit cb2d7b5dbe
2 changed files with 1 additions and 11 deletions

View File

@ -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

View File

@ -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