pub trait HttpVersionInputExt {
// Required method
fn http_version(&self) -> Option<Version>;
}Available on crate feature
http 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§
Sourcefn 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".