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] Ability to set global HTTP headers #83

Closed russcam closed 4 years ago

russcam commented 4 years ago

Is your feature request related to a problem? Please describe. The client exposes the ability to set HTTP headers per request, it should also expose the ability to set global headers that are sent with every request.

Describe the solution you'd like TransportBuilder should expose a function to add default HTTP headers to the underlying reqwest client