Struct async_http_client::HttpResponse [] [src]

pub struct HttpResponse { /* fields omitted */ }

Representation of an HTTP response.

Methods

impl HttpResponse
[src]

Returns the status code of this response.

Returns true if this response has a header with the given name that matches the expected value.

Comparisons are made in a case-insensitive manner.

Returns true if this response has a header with the given name that has a comma-separated list of values, and one of those values matches the expected value.

Comparisons are made in a case-insensitive manner. Each value of the comma-separated list is trimmed before comparison.

Returns true if this response has a 1xx Informational status code.

Returns true if this response has a 2xx Successful status code.

Returns true if this response has a 3xx Redirection status code.

Returns true if this response has a 4xx Client Error status code.

Returns true if this response isisis a 5xx Server Error status code.

Trait Implementations

impl PartialEq for HttpResponse
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for HttpResponse
[src]

impl Debug for HttpResponse
[src]

Formats the value using the given formatter.

impl<'a> Index<&'a str> for HttpResponse
[src]

The returned type after indexing

Retrieve the header with the given name.

Comparison is made in a case-insensitive manner.

impl Display for HttpResponse
[src]

Formats the value using the given formatter. Read more