Skip to content

header api: add guards - #22530

Closed
icing wants to merge 4 commits into
curl:masterfrom
icing:header-api-guards
Closed

icing wants to merge 4 commits into
curl:masterfrom
icing:header-api-guards

Conversation

@icing

@icing icing commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Add API guards for curl_easy_header and curl_easy_nextheader.

urldata.h: remove prevhead member as not used

@icing
icing force-pushed the header-api-guards branch from 2597281 to e547acd Compare August 10, 2026 11:55
@icing
icing requested a review from bagder August 10, 2026 12:33

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds easy API guards to the HTTP header access APIs and removes obsolete header state.

Changes:

  • Guards header lookup and iteration calls.
  • Converts guard failures to CURLHcode.
  • Removes unused prevhead state.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
lib/api.c Registers header APIs and converts guard errors.
lib/api.h Declares guard identifiers and conversion helper.
lib/headers.c Applies guards and removes obsolete assignments.
lib/urldata.h Removes the unused prevhead member.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread lib/headers.c
Comment thread lib/headers.c
icing added 3 commits August 11, 2026 09:19
Add API guards for curl_easy_header and curl_easy_nextheader.

urldata.h: remove prevhead member as not used
@icing
icing force-pushed the header-api-guards branch from e547acd to ae4d0e6 Compare August 11, 2026 07:52
@github-actions github-actions Bot added the tests label Aug 11, 2026
@icing
icing requested a review from bagder August 11, 2026 08:40
@bagder bagder closed this in e9b291c Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

3 participants