Skip to content

feat: make header input more flexible #42

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

Merged
merged 1 commit into from
Jun 19, 2025
Merged

feat: make header input more flexible #42

merged 1 commit into from
Jun 19, 2025

Conversation

Qard
Copy link
Member

@Qard Qard commented Jun 18, 2025

This adds custom NapiValue converters to lang_handler to allow converting to the Headers type from both a PhpHeaders class instance and from raw object form, making it more flexible this also allows header values to be both strings or arrays now, which should improve user experience.

@Qard Qard added the enhancement New feature or request label Jun 18, 2025
@Qard Qard force-pushed the better-headers-input branch from 69b86d7 to 062906b Compare June 18, 2025 15:47
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@Qard Qard merged commit 87b258f into main Jun 19, 2025
11 checks passed
@Qard Qard deleted the better-headers-input branch June 19, 2025 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants