elastic / elasticsearch-rs

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

Add default global HTTP headers #85

Closed russcam closed 4 years ago

russcam commented 4 years ago

This commit adds the ability to add global HTTP headers to the TransportBuilder, to set HTTP headers for all API calls made by the client.

HTTP headers can be overridden on a per API call basis by using the header function exposed on each builder struct.

Closes #83

russcam commented 4 years ago

ported to 7.x, 7.7