[][src]Struct fastcgi_client::Client

pub struct Client<S: Read + Write + Send + Sync> { /* fields omitted */ }

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]

Send request and receive response from fastcgi server.

  • params fastcgi params.
  • body always 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

impl<S> RefUnwindSafe for Client<S> where
    S: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]