[−][src]Struct fastcgi_client::Client
Client for handling communication between fastcgi server.
Methods
impl<S: Read + Write + Send + Sync> Client<BufStream<S>>[src]
pub fn new(stream: S, keep_alive: bool) -> Self[src]
Construct a Client Object with stream (such as std::net::TcpStream or std::os::unix::net::UnixStream,
with buffered read/write for stream.
impl<S: Read + Write + Send + Sync> Client<S>[src]
pub fn new_without_buffered(stream: S, keep_alive: bool) -> Self[src]
Construct a Client Object with stream (such as std::net::TcpStream or std::os::unix::net::UnixStream,
without buffered read/write for stream.
pub fn do_request<'a>(
&mut self,
params: &Params<'a>,
body: &mut dyn Read
) -> ClientResult<&mut Output>[src]
&mut self,
params: &Params<'a>,
body: &mut dyn Read
) -> ClientResult<&mut Output>
Send request and receive response from fastcgi server.
paramsfastcgi params.bodyalways the http post or put body.
return the output of fastcgi stdout and stderr.
Auto Trait Implementations
impl<S> Send for Client<S>
impl<S> Sync for Client<S>
impl<S> Unpin for Client<S>
impl<S> UnwindSafe for Client<S> where
S: UnwindSafe,
S: UnwindSafe,
impl<S> RefUnwindSafe for Client<S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,