Skip to main content

HttpVersionInputExt

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>

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 &T

Available on crate feature http only.

Implementors§

§

impl HttpVersionInputExt for Parts

§

impl HttpVersionInputExt for rama::tcp::client::Request

§

impl<Body> HttpVersionInputExt for rama::http::Request<Body>