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 glob path matching (an alternative to default prefix matching) #93

Merged
merged 1 commit into from
May 5, 2016
Merged

Add glob path matching (an alternative to default prefix matching) #93

merged 1 commit into from
May 5, 2016

Conversation

dkong
Copy link
Contributor

@dkong dkong commented May 2, 2016

We have a use case that requires being able to register a backend service with a glob style pattern /foo.* and have it handle all routes such as /foo.bar, /foo.bar.baz, etc.

This PR retains the original prefix matching behavior but adds an option to use glob matching. This also opens up the possibility to add regex matching down the line if it's useful.

Thanks.

Using "glob" matching, a backend server can register for "/foo.*" to
handle routes such as "/foo.bar" and "/foo.bar.baz".

The default option is still prefix matching (original behavior)
@magiconair
Copy link
Contributor

Interesting idea. This might solve a couple of other issues for people as well. Code looks clean on first glance and I like the integration. I'll spend a bit more time reviewing this but this looks like it is going in.

Thanks for this.

@magiconair magiconair merged commit c183ca0 into fabiolb:master May 5, 2016
@magiconair
Copy link
Contributor

Looks good. I'll update the docs.

@magiconair magiconair mentioned this pull request May 6, 2016
@magiconair magiconair added this to the 1.1.3 milestone May 20, 2016
@CodyPubNub CodyPubNub deleted the feature/add-glob-matching branch June 10, 2019 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants