Unverified Commit 0ccfbd7e authored by Alexandru Vasile's avatar Alexandru Vasile Committed by GitHub
Browse files

Uniform API for custom headers between clients (#814)



* ws-client: Replace `httparse::Header` with `http::HeaderMap`

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* ws-client: Make headers optional

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* http-client: Expose custom header injection

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* http-client: Adjust testing for custom headers

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* Make `http::HeaderMap` non-optional

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* http-client: Cache request headers

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* Fix doc tests

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* http-client: Use `into_iter` for headers

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* docs: Improve custom headers documentation

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* http: Use `hyper::http` instead of `http` directly

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* http-client: Adjust testing

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* Fix doc tests

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* client: Expose `http::HeaderMap` and `http::HeaderValue`

Signed-off-by: default avatarAlexandru Vasile <[email protected]>
parent a26f1fb7
Pipeline #202760 passed with stages
in 4 minutes and 46 seconds