Struct fibers_http_client::RequestBuilder[][src]

pub struct RequestBuilder<'a, C: 'a, E = BytesEncoder, D = RemainingBytesDecoder> { /* fields omitted */ }

HTTP request builder.

This is created by calling Client::request method.

Methods

impl<'a, C: 'a, E, D> RequestBuilder<'a, C, E, D> where
    C: AcquireConnection,
    E: Encode,
    D: Decode
[src]

Executes GET request.

Executes HEAD request.

Executes DELETE request.

Executes PUT request.

Executes POST request.

Adds a field to the tail of the HTTP header of the request.

Sets the timeout of the request.

Sets the encoder for serializing the body of the HTTP request.

This is only meaningful at the case the method of the request is PUT or POST.

Sets the decoder for deserializing the body of the HTTP response replied from the server.

The decoder is unused if the method of the request is HEAD.

Trait Implementations

impl<'a, C: Debug + 'a, E: Debug, D: Debug> Debug for RequestBuilder<'a, C, E, D>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'a, C, E, D> Send for RequestBuilder<'a, C, E, D> where
    C: Send,
    D: Send,
    E: Send

impl<'a, C, E, D> Sync for RequestBuilder<'a, C, E, D> where
    C: Sync,
    D: Sync,
    E: Sync