julienschmidt / httprouter

A high performance HTTP request router that scales well
https://pkg.go.dev/github.com/julienschmidt/httprouter
BSD 3-Clause "New" or "Revised" License
16.57k stars 1.47k forks source link

clarify status of non-full-segment parameters #114

Open rogpeppe opened 8 years ago

rogpeppe commented 8 years ago

The documentation does not make it clear whether paths of the form:

/prefix:foo

are allowed. These are currently supported by httprouter, but don't seem quite in the spirit of its simple specification (you can't have statically defined suffixes for a path element, so why should you be allowed a statically defined prefix?)

This form:

/prefix*foo

is similarly not specified but is explicitly disallowed. The two forms should perhaps be made consistent with each other.

mpnally commented 8 years ago

Please don't fix this by disallowing /prefix:foo; I am using that capability