Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Open Utility for Merging Headers #685

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Conversation

d-goog
Copy link
Contributor

@d-goog d-goog commented Feb 8, 2025

Description

Opens up a simple utility for merging different types of headers.

Testing

Added tests.

Impact

Opening this utility can be helpful when the headers are not known to exist:

  • if they exist as Headers, that instance will be used
    • Improves UX as it improves performance and allows customers to use their existing references to their Headers
  • if they exist in another form (HeadersInit), they will be used to create a new Headers object
  • if the base headers do not exist a new Headers object will be created

🦕

@d-goog d-goog requested a review from a team as a code owner February 8, 2025 00:17
@product-auto-label product-auto-label bot added the size: m Pull request size is medium. label Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant