forked from aesiniath/http-streams
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
unsafeReceiveResponse that does not consume body
This works when you know there is no body, no matter what the headers say (HEAD requests, aesiniath#114) This also works when the handler consumes whatever part of the body you actually want to use, and then you close the connection afterwards (no reusing for pipelining!) Sometimes this is a lot faster than using pipelining if you can, for example, skip a many GB download (aesiniath#113)
- Loading branch information
1 parent
ec9b58b
commit 3b6d7b6
Showing
2 changed files
with
18 additions
and
0 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