mirror of
https://github.com/kataras/iris.git
synced 2025-03-14 08:16:28 +01:00
normalize the doc's routers
Former-commit-id: 81f7a7dbc228c18d10188c39088d34d4bb512282
This commit is contained in:
parent
48b5b1fb46
commit
a3e694b9bd
10
doc.go
10
doc.go
|
@ -36,13 +36,13 @@ By adapted a router users are able to use router's features on the route's Path,
|
||||||
the rest of the HTTP API and Context's calls remains the same for all routers, as expected.
|
the rest of the HTTP API and Context's calls remains the same for all routers, as expected.
|
||||||
|
|
||||||
- httprouter, it's a custom version of https://github.comjulienschmidt/httprouter,
|
- httprouter, it's a custom version of https://github.comjulienschmidt/httprouter,
|
||||||
which is edited to support iris' subdomains, reverse routing, custom http errors and a lot features,
|
which is edited to support iris' subdomains, reverse routing, custom http errors and a lot features,
|
||||||
it should be a bit faster than the original too because of iris' Context.
|
it should be a bit faster than the original too because of iris' Context.
|
||||||
It uses `/mypath/:firstParameter/path/:secondParameter` and `/mypath/*wildcardParamName` .
|
It uses `/mypath/:firstParameter/path/:secondParameter` and `/mypath/*wildcardParamName` .
|
||||||
|
|
||||||
- gorillamuxa, it's the https://github.com/gorilla/mux which supports subdomains,
|
- gorillamuxa, it's the https://github.com/gorilla/mux which supports subdomains,
|
||||||
custom http errors, reverse routing, pattern matching via regex and the rest of the iris' features.
|
custom http errors, reverse routing, pattern matching via regex and the rest of the iris' features.
|
||||||
It uses `/mypath/{firstParameter:any-regex-valid-here}/path/{secondParameter}` and `/mypath/{wildcardParamName:.*}`
|
It uses `/mypath/{firstParameter:any-regex-valid-here}/path/{secondParameter}` and `/mypath/{wildcardParamName:.*}`
|
||||||
|
|
||||||
Example code:
|
Example code:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user