Struct finchers_core::Input [] [src]

pub struct Input { /* fields omitted */ }

The context which holds the received HTTP request.

The value is used throughout the processing in Endpoint and Task.

Methods

impl Input
[src]

[src]

Create an instance of Input from components.

Some fields remain uninitialized and their values are set when the corresponding method will be called.

[src]

Set the reference to itself to the thread-local storage and execute given closure.

Typically, this method is used in the implementation of Task which holds some closures.

[src]

Execute a closure with the reference to the instance of Input from the thread-local storage.

This method is only used in a closure passed to enter_scope. Otherwise, it will be panic.

[src]

Return a shared reference to the value of raw HTTP request without the message body.

[src]

Return the reference to the parsed media type in the request header.

This method will perform parsing of the entry Content-type in the request header if it has not been done yet. If the value is invalid, it will return an Err.

Trait Implementations

impl Debug for Input
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Input

impl !Sync for Input