pub trait HasVersion {
// Required method
fn http_version(&self) -> Version;
}Expand description
Trait for types that provide access to the HTTP protocol version.
Implement this trait to enable version predicates on custom types.
Both CacheableHttpRequest and
CacheableHttpResponse implement this trait.
Required Methods§
Sourcefn http_version(&self) -> Version
fn http_version(&self) -> Version
Returns the HTTP protocol version.