Struct generic_async_http_client::Response[][src]

pub struct Response(_);
Expand description

The response of a webserver. Headers and Status are available from the start, the body must be polled/awaited again

Implementations

Return the status code

Return the status as string

Return the Body as some type deserialized from JSON

Return the whole Body as Bytes

Return the whole Body as String

If there are multiple values associated with the key, then the first one is returned.

Each key will be yielded once per associated value. So, if a key has 3 associated values, it will be yielded 3 times.

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.