Struct fastcgi::Request [] [src]

pub struct Request { /* fields omitted */ }

Request objects are what a FastCGI application will primarily deal with throughout its lifetime.

The Request API is designed to be an abstraction of the traditional CGI process model. Note that this API is low level. Dealing with things like GET/POST parameters or cookies is outside the scope of this library.

Methods

impl Request
[src]

[src]

[src]

Retrieves the value of the given parameter name.

[src]

Iterates over the FastCGI parameters.

Important traits for Stdin<'a>
[src]

Standard input stream of the request.

Important traits for Stdout<'a>
[src]

Standard output stream of the request.

Important traits for Stderr<'a>
[src]

Standard error stream of the request.

[src]

Checks if the client has closed the connection prematurely.

The reliability of this method depends on whether the web server notifies such event (by sending the FCGI_REQUEST_ABORTED record) to the FastCGI application. This value is updated synchronously; the update may only be triggered by reading from stdin.

[src]

Reports the specified exit code to the web server.

This will consume the Request object. If you finish processing the Request object without calling exit, it is assumed that the exit code is 0.

Trait Implementations

impl Drop for Request
[src]

[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl !Send for Request

impl !Sync for Request