Struct multipart::mock::ClientRequest [] [src]

pub struct ClientRequest { /* fields omitted */ }

A mock implementation of client::HttpRequest which can spawn an HttpBuffer.

client::HttpRequest impl requires the client feature.

Trait Implementations

impl Default for ClientRequest
[src]

[src]

Returns the "default value" for a type. Read more

impl Debug for ClientRequest
[src]

[src]

Formats the value using the given formatter.

impl HttpRequest for ClientRequest
[src]

The HTTP stream type that can be opend by this request, to which the multipart data will be written. Read more

The error type for this request. Must be compatible with io::Error as well as Self::HttpStream::Error Read more

[src]

Set the Content-Type header to multipart/form-data and supply the boundary value. If content_len is given, set the Content-Length header to its value. Read more

[src]

Panics

If apply_headers() was not called.