diff --git a/elasticsearch/src/http/response.rs b/elasticsearch/src/http/response.rs index 071d4311..ccc481d6 100644 --- a/elasticsearch/src/http/response.rs +++ b/elasticsearch/src/http/response.rs @@ -164,6 +164,12 @@ impl fmt::Debug for Response { } } +impl Into for Response { + fn into(self) -> reqwest::Response { + self.response + } +} + /// An exception raised by Elasticsearch. /// /// Contains details that indicate why the exception was raised which can help to determine