elastic / elasticsearch-rs

Official Elasticsearch Rust Client
https://www.elastic.co/guide/en/elasticsearch/client/rust-api/current/index.html
Apache License 2.0
702 stars 72 forks source link

[ENHANCEMENT] Default Cat APIs to accept text/plain header #71

Closed russcam closed 4 years ago

russcam commented 4 years ago

Is your feature request related to a problem? Please describe. In implementing the yaml test runner in #19, there is a need to be able to return the response as a plain text string, to make assertions against.

Describe the solution you'd like All Cat APIs should set text/plain accept and content-type headers by default, with the ability to read the response as plain text