Trait HttpVersionInputExt
pub trait HttpVersionInputExt {
// Required method
fn http_version(&self) -> Option<Version>;
}Available on crate feature
net only.Expand description
Read the negotiated HTTP Version of a service input.
Explicitly HTTP-named: it is None for non-HTTP inputs (e.g. a raw
transport target).
Required Methods§
fn http_version(&self) -> Option<Version>
fn http_version(&self) -> Option<Version>
The HTTP version, or None for non-HTTP inputs.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
§impl<T> HttpVersionInputExt for &Twhere
T: HttpVersionInputExt + ?Sized,
Available on crate feature http only.
impl<T> HttpVersionInputExt for &Twhere
T: HttpVersionInputExt + ?Sized,
Available on crate feature
http only.