Make use of NSURLSession and WinHTTP on macOS and Windows#778
Merged
Conversation
c0252e8 to
afc7bed
Compare
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
NSURLSession and WinHTTP HTTP clientNSURLSession and WinHTTP on macOS and Windows
|
This pull request is abnormally large and would use a significant amount of tokens to review. If you still wish to review it, comment "augment review" and we will review it. |
There was a problem hiding this comment.
5 issues found across 96 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="src/http/http_darwin.mm">
<violation number="1" location="src/http/http_darwin.mm:80">
P2: This backend drops duplicate response headers by reading `allHeaderFields` from a dictionary. It violates `HTTPResponse` contract to preserve repeated headers and can lose semantics for headers that must not be comma-folded.</violation>
</file>
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
| const auto *http_response{(NSHTTPURLResponse *)raw_response}; | ||
| response_pointer->status = http_status_from_code( | ||
| static_cast<std::uint16_t>(http_response.statusCode)); | ||
| [http_response.allHeaderFields |
There was a problem hiding this comment.
P2: This backend drops duplicate response headers by reading allHeaderFields from a dictionary. It violates HTTPResponse contract to preserve repeated headers and can lose semantics for headers that must not be comma-folded.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At src/http/http_darwin.mm, line 80:
<comment>This backend drops duplicate response headers by reading `allHeaderFields` from a dictionary. It violates `HTTPResponse` contract to preserve repeated headers and can lose semantics for headers that must not be comma-folded.</comment>
<file context>
@@ -0,0 +1,109 @@
+ const auto *http_response{(NSHTTPURLResponse *)raw_response};
+ response_pointer->status = http_status_from_code(
+ static_cast<std::uint16_t>(http_response.statusCode));
+ [http_response.allHeaderFields
+ enumerateKeysAndObjectsUsingBlock:^(
+ NSString *name, NSString *value, BOOL *) {
</file context>
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Signed-off-by: Juan Cruz Viotti jv@jviotti.com