mirror of
https://github.com/kataras/iris.git
synced 2025-12-17 18:07:01 +00:00
normalize the doc's routers
Former-commit-id: 81f7a7dbc228c18d10188c39088d34d4bb512282
This commit is contained in:
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.
|
||||
|
||||
- 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,
|
||||
it should be a bit faster than the original too because of iris' Context.
|
||||
It uses `/mypath/:firstParameter/path/:secondParameter` and `/mypath/*wildcardParamName` .
|
||||
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 uses `/mypath/:firstParameter/path/:secondParameter` and `/mypath/*wildcardParamName` .
|
||||
|
||||
- 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.
|
||||
It uses `/mypath/{firstParameter:any-regex-valid-here}/path/{secondParameter}` and `/mypath/{wildcardParamName:.*}`
|
||||
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:.*}`
|
||||
|
||||
Example code:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user