Skip to main content

HttpInputAlg

Trait HttpInputAlg 

Source
pub trait HttpInputAlg {
    type Path<Input>;
    type Query<Input>;
    type Body<Input>;
    type Form<Input>;
    type RawBody<Input>;
    type Header<Input>;
    type Cookie<Input>;
    type Multipart<Input>;
    type Auth<Input>;
    type Context<Input>;
}
Expand description

Describes the HTTP input roles chosen by an interpreter.

Required Associated Types§

Source

type Path<Input>

The interpreter’s path extractor for Input.

Source

type Query<Input>

The interpreter’s query extractor for Input.

Source

type Body<Input>

The interpreter’s request-body extractor for Input.

Source

type Form<Input>

The interpreter’s form-encoded request-body extractor for Input.

Source

type RawBody<Input>

The interpreter’s unread request-body extractor for Input.

Source

type Header<Input>

The interpreter’s header extractor for Input.

Headers are names and values, so an argument read from them is an ordinary product. A framework’s own extractor is what HttpInputAlg::Context states.

Source

type Cookie<Input>

The interpreter’s cookie extractor for Input.

Source

type Multipart<Input>

The interpreter’s extractor for Input read from a body arriving as parts.

Source

type Auth<Input>

The interpreter’s authentication extractor for Input.

Source

type Context<Input>

The interpreter’s endpoint-context extractor for Input.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§