-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Uniform API for custom headers between clients (#814)
* ws-client: Replace `httparse::Header` with `http::HeaderMap` Signed-off-by: Alexandru Vasile <[email protected]> * ws-client: Make headers optional Signed-off-by: Alexandru Vasile <[email protected]> * http-client: Expose custom header injection Signed-off-by: Alexandru Vasile <[email protected]> * http-client: Adjust testing for custom headers Signed-off-by: Alexandru Vasile <[email protected]> * Make `http::HeaderMap` non-optional Signed-off-by: Alexandru Vasile <[email protected]> * http-client: Cache request headers Signed-off-by: Alexandru Vasile <[email protected]> * Fix doc tests Signed-off-by: Alexandru Vasile <[email protected]> * http-client: Use `into_iter` for headers Signed-off-by: Alexandru Vasile <[email protected]> * docs: Improve custom headers documentation Signed-off-by: Alexandru Vasile <[email protected]> * http: Use `hyper::http` instead of `http` directly Signed-off-by: Alexandru Vasile <[email protected]> * http-client: Adjust testing Signed-off-by: Alexandru Vasile <[email protected]> * Fix doc tests Signed-off-by: Alexandru Vasile <[email protected]> * client: Expose `http::HeaderMap` and `http::HeaderValue` Signed-off-by: Alexandru Vasile <[email protected]>
- Loading branch information
Showing
6 changed files
with
132 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.