Skip to content

Support adding a body to PATCH requests#172

Merged
MrSmoke merged 2 commits intomasterfrom
support-patch-body
Mar 4, 2026
Merged

Support adding a body to PATCH requests#172
MrSmoke merged 2 commits intomasterfrom
support-patch-body

Conversation

@kevinwell
Copy link
Contributor

No description provided.

@kevinwell kevinwell requested a review from MrSmoke March 3, 2026 10:13
Copy link
Member

@MrSmoke MrSmoke left a comment

Choose a reason for hiding this comment

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

Could we keep it using a normal if instead of a hashset? I dont think we need the extra overhead of:

  • allocation a hashset for every request (though it could be made static)
  • The Contains() call vs a binary && operation

Maybe the check can be moved to a bool MethodSupportsBody(Method) function to help with the #if

@kevinwell kevinwell requested a review from MrSmoke March 4, 2026 06:37
@MrSmoke MrSmoke merged commit 8f6f4c2 into master Mar 4, 2026
5 checks passed
@MrSmoke MrSmoke deleted the support-patch-body branch March 4, 2026 06:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants