Struct wclient::Response[][src]

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

HTTP Response An HTTP Response is formed by:

  • Status code
  • (optional) Response headers
  • (optional) Server’s cookies (header Set-Cookie)
  • (optional) Response body

For mor information see HTTP Response

Implementations

Response default constructor, only sets the status code. After constructing the value, as struct members are public, they can be accessed directly

Get the Response status code

Get Response Headers.

Get Request Cookies.

returns if the Response has body

Response’s body builder.

Checks if the Response has body and tries to parse as a `json::JsonValue’

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.