-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Avoid waiting for complete response, if we are just checking if for success status code. Avoid evaluating OS & Version for every request. Avoid a possible MemoryStream leak. Other minor tweaks * Dispose responses & requests, pass cancellationToken & avoid an array allocation * Dispose cloned request, add sealed & readonly * Avoid deserializing into a string by deserializing directly from the response stream. Then deserialization can start immediately instead of waiting for the entire response. Reuse JsonSerializerSettings. Avoid async Task methods where it adds no value. * Use HTTP/2 * Allow HTTP response connection * Update package and dependency --------- Co-authored-by: Henrik Gedionsen <[email protected]>
- Loading branch information
Showing
11 changed files
with
393 additions
and
632 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.