-
Notifications
You must be signed in to change notification settings - Fork 170
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 <alexandru.vasile@parity.io> * ws-client: Make headers optional Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * http-client: Expose custom header injection Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * http-client: Adjust testing for custom headers Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Make `http::HeaderMap` non-optional Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * http-client: Cache request headers Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Fix doc tests Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * http-client: Use `into_iter` for headers Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * docs: Improve custom headers documentation Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * http: Use `hyper::http` instead of `http` directly Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * http-client: Adjust testing Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Fix doc tests Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * client: Expose `http::HeaderMap` and `http::HeaderValue` Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
- 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.