httprouter icon indicating copy to clipboard operation
httprouter copied to clipboard

clarify status of non-full-segment parameters

Open rogpeppe opened this issue 10 years ago • 1 comments

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.

rogpeppe avatar Nov 16 '15 19:11 rogpeppe

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

mpnally avatar Mar 16 '16 20:03 mpnally