Struct finchers_test::ClientRequest [] [src]

pub struct ClientRequest<'a, E: Endpoint + 'a> { /* fields omitted */ }

A builder of dummy HTTP request.

Methods

impl<'a, E: Endpoint> ClientRequest<'a, E>
[src]

[src]

Overwrite the HTTP method of this dummy request with given value.

Panics

This method will panic if the parameter is invalid HTTP method.

[src]

Overwrite the URI of this dummy request with given value.

Panics

This method will panic if the parameter is invalid HTTP method.

[src]

Append the given header entry into this dummy request.

Panics

This method will panic if the given header name or value is invalid.

[src]

Overwrite the message body of this dummy request with given instance.

[src]

Apply this dummy request to the associated endpoint and get its response.

Trait Implementations

impl<'a, E: Debug + Endpoint + 'a> Debug for ClientRequest<'a, E>
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'a, E> Send for ClientRequest<'a, E>

impl<'a, E> Sync for ClientRequest<'a, E>