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

Support URLPattern as request predicate #1921

Open
1 task
kettanaito opened this issue Dec 11, 2023 · 0 comments
Open
1 task

Support URLPattern as request predicate #1921

kettanaito opened this issue Dec 11, 2023 · 0 comments
Labels

Comments

@kettanaito
Copy link
Member

Scope

Adds a new behavior

Compatibility

  • This is a breaking change

Feature description

As soon as URLPattern gets globally supported, we should support it as the input to the request handlers.

http.get(new URLPattern('https://example.com/:resource'), resolver)

We can also migrate to represent the request matching using the URLPattern instances instead of relying on path-to-regexp and a custom matchRequestUrl function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant