Struct async_scgi::ScgiRequest[][src]

pub struct ScgiRequest {
    pub headers: ScgiHeaders,
    pub body: Vec<u8>,
}
Expand description

An SCGI request.

The SCGI and CONTENT_LENGTH length headers are added automatically when ScgiRequest::encode is called and removed when requests are read.

Fields

headers: ScgiHeaders

The request header name, value pairs.

body: Vec<u8>

The request body.

Implementations

Create an empty ScgiRequest.

Create an ScgiRequest with a set of headers.

Encode an ScgiRequest to be sent over the wire.

Trait Implementations

Formats the value using the given formatter. Read more

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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.

Performs the conversion.

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.