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]
pub fn role(&self) -> Role
[src]
pub fn param(&self, key: &str) -> Option<String>
[src]
Retrieves the value of the given parameter name.
pub fn params(&self) -> Params
[src]
Iterates over the FastCGI parameters.
ⓘImportant traits for Stdin<'a>pub fn stdin(&mut self) -> Stdin
[src]
Standard input stream of the request.
ⓘImportant traits for Stdout<'a>pub fn stdout(&mut self) -> Stdout
[src]
Standard output stream of the request.
ⓘImportant traits for Stderr<'a>pub fn stderr(&mut self) -> Stderr
[src]
Standard error stream of the request.
pub fn is_aborted(&self) -> bool
[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.
pub fn exit(self, code: i32)
[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.