pub struct Request<'a, I: AsyncRead + Unpin> { /* private fields */ }
Expand description
FastCGI request containing parameters and stdin data.
This structure represents a complete FastCGI request with all necessary parameters and an optional stdin stream for request body data.
Implementations§
Source§impl<'a, I: AsyncRead + Unpin> Request<'a, I>
impl<'a, I: AsyncRead + Unpin> Request<'a, I>
Sourcepub fn new(params: Params<'a>, stdin: I) -> Self
pub fn new(params: Params<'a>, stdin: I) -> Self
Creates a new FastCGI request with the given parameters and stdin.
§Arguments
params
- The FastCGI parametersstdin
- The stdin stream for request body data
Sourcepub fn params_mut(&mut self) -> &mut Params<'a>
pub fn params_mut(&mut self) -> &mut Params<'a>
Returns a mutable reference to the request parameters.
Auto Trait Implementations§
impl<'a, I> Freeze for Request<'a, I>where
I: Freeze,
impl<'a, I> RefUnwindSafe for Request<'a, I>where
I: RefUnwindSafe,
impl<'a, I> Send for Request<'a, I>where
I: Send,
impl<'a, I> Sync for Request<'a, I>where
I: Sync,
impl<'a, I> Unpin for Request<'a, I>
impl<'a, I> UnwindSafe for Request<'a, I>where
I: UnwindSafe,
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