pub struct Headers { /* private fields */ }
This is supported on crate feature http only.
Expand description

A wrapper around web_sys::Headers.

Implementations

Create a new empty headers object.

This method appends a new value onto an existing header, or adds the header if it does not already exist.

Deletes a header if it is present.

Gets a header if it is present.

Whether a header with the given name exists.

Overwrites a header with the given name.

Iterate over (header name, header value) pairs.

Iterate over the names of the headers.

Iterate over the values of the headers.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. 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 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.