Struct actix_http::RequestHead[][src]

pub struct RequestHead {
    pub uri: Uri,
    pub method: Method,
    pub version: Version,
    pub headers: HeaderMap,
    pub extensions: RefCell<Extensions>,
    pub peer_addr: Option<SocketAddr>,
    // some fields omitted
}

Fields

uri: Urimethod: Methodversion: Versionheaders: HeaderMapextensions: RefCell<Extensions>peer_addr: Option<SocketAddr>

Implementations

Message extensions

Mutable reference to a the message’s extensions

Read the message headers.

Mutable reference to the message headers.

Is to uppercase headers with Camel-Case. Default is false

Set true to send headers which are formatted as Camel-Case.

Set connection type of the message

Connection type

Connection upgrade status

Get response body chunking state

Request contains EXPECT header

Trait Implementations

Performs the conversion.

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more