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

Search for unnamed HTTP headers by type, but contravariantly #79

Merged
merged 1 commit into from
Jan 28, 2025

Conversation

propensive
Copy link
Owner

@propensive propensive commented Jan 28, 2025

When using an HTTP header without an explicit name, a search is done to infer the type from its type. But the search was invariant by default, so it would often search for a singleton type. This adjusts the implicit search in the macro to look for any supertype of the header type. That is, a contravariant search.

@propensive propensive merged commit ee22d4b into main Jan 28, 2025
1 check passed
@propensive propensive deleted the contravariant-search-for-unnamed-http-headers branch January 28, 2025 12:44
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.

1 participant