-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[finagle-http] Preserve reader and writer state when constructing req…
…uest and response Problem The constructor for Responses and Requests that takes HttpResponse and HttpRequest should perform a match to see if the parameter is already a Response or Request, and in those casesjust return them. This is so that the state of thereader and writer is preserved. Solution Return the param if it's already the correct type, and if we need to create a new object, make sure to copy the reader and writer. RB_ID=690768
- Loading branch information
1 parent
0eac1ad
commit 6359210
Showing
4 changed files
with
50 additions
and
14 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