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

add custom path matcher #1030

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

urkle
Copy link
Contributor

@urkle urkle commented Mar 30, 2023

  • this allows a custom function to
    • match multiple path segments
    • extract whatever it wants from the path
    • advance the consumed path to use path()/end() after

This should be able to fulfill #808, 542, as well as some needs I have to extract multiple inner path segments.

@seanmonstar One question I do have for you is should we build some builder methods around the return value in to the function to make it more friendly? As having to return a nested tuple like that is kinda icky. And if so, what structure would you suggest?

@urkle urkle force-pushed the feat-custom-path-filter branch from 9401dfa to 390fe84 Compare March 30, 2023 18:21
- this allows a custom function to
   - match multiple path segments
   - extract whatever it wants from the path
   - advance the consumed path to use path()/end() after
@urkle urkle force-pushed the feat-custom-path-filter branch from 390fe84 to b7a8f85 Compare January 19, 2024 21:36
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