pub struct Request { /* private fields */ }
Expand description
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.
Implementations§
Source§impl Request
impl Request
pub fn role(&self) -> Role
Sourcepub fn param(&self, key: &str) -> Option<String>
pub fn param(&self, key: &str) -> Option<String>
Retrieves the value of the given parameter name.
Sourcepub fn is_aborted(&self) -> bool
pub fn is_aborted(&self) -> bool
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.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl !Send for Request
impl !Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more