Struct elasticsearch::http::response::Response [−][src]
pub struct Response { /* fields omitted */ }
Expand description
A response from Elasticsearch
Implementations
Creates a new instance of an Elasticsearch response
Get the response content-length, if known.
Reasons it may not be known:
- The server didn’t send a
content-length
header. - The response is compressed and automatically decoded (thus changing the actual decoded length).
Gets the response content-type.
Turn the response into an Error if Elasticsearch returned an error.
Turn the response into an Error if Elasticsearch returned an error.
Asynchronously reads the response body into an Exception if Elasticsearch returned a HTTP status code in the 400-599 range.
Reading the response body consumes self
Asynchronously reads the response body as JSON
Reading the response body consumes self
Get the HTTP status code of the response
Asynchronously reads the response body as plain text
Reading the response body consumes self
Asynchronously reads the response body as bytes
Reading the response body consumes self
Gets the Deprecation warning response headers
Deprecation headers signal the use of Elasticsearch functionality or features that are deprecated and will be removed in a future release.