-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Partial header and timeout implementaton.. (#19)
* Partial header impl * Minor fixup * Update grip.inc * Some more work on testing
- Loading branch information
Alik Aslanyan
authored
Jan 17, 2019
1 parent
ae2ef38
commit e96c3a6
Showing
9 changed files
with
446 additions
and
187 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
pub trait RequestExt { | ||
fn extend_headers(self, headers: hyper::HeaderMap) -> Self; | ||
} | ||
|
||
impl<T> RequestExt for hyper::Request<T> { | ||
fn extend_headers(mut self, headers: hyper::HeaderMap) -> Self { | ||
self.headers_mut().extend(headers); | ||
|
||
self | ||
} | ||
} |
Oops, something went wrong.