dunglas / mercure

🪽 An open, easy, fast, reliable and battery-efficient solution for real-time communications
https://mercure.rocks
GNU Affero General Public License v3.0
3.97k stars 296 forks source link

Switch from URI Templates to URI Pattern #588

Open dunglas opened 2 years ago

dunglas commented 2 years ago

There is a new proposal for a standard dedicated to matching URLs: https://developer.mozilla.org/en-US/docs/Web/API/URL_Pattern_API

If it is adopted, it will better fit the Mercure use case than how we currently hijack the URI Template spec.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

dunglas commented 2 years ago

We currently lack a Go library implementing the URLPattern spec.

The algorithm to implement is fully described in the spec.

Some useful resources to implement this:

Similar code that may be adapted to conform to the spec: