pub struct RequestBuilder<'a>(_);

Implementations

Create a new request with the given method, host, port, and path.

Create a new request with the host, port, and path determined from the URL.

Set the request method. This should be a capitalized string.

Set the URL path for the request.

Set the URL hostname for the request

Set the URL port for the request

Set the hostname, port, and path for the request, from a string URL.

Set the content hash for the request

Set the ext Hawk property for the request

Set the app Hawk property for the request

Set the dlg Hawk property for the request

Get the request from this builder

Extract the bewit query parameter, if any, from the path, and return it in the output parameter, returning a modified RequestBuilder omitting the bewit=.. query parameter. If no bewit is present, or if an error is returned, the output parameter is reset to None.

The path manipulation is tested to correspond to that preformed by the hueniverse/hawk implementation-specification

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.