pub struct Response { /* private fields */ }
Expand description

The Request’s response

Implementations

Gets the url.

Whether the request was redirected.

Gets the status.

Whether the response was ok.

Gets the status text.

Gets the headers.

Whether the body was used.

Gets the body.

Gets the raw [Response][web_sys::Response] object.

Gets the form data.

Gets and parses the json.

Gets the response text.

Gets the binary response

This works by obtaining the response as an ArrayBuffer, creating a Uint8Array from it and then converting it to Vec<u8>

Trait Implementations

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

Performs the conversion.

Performs the conversion.

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.