vibe-d v0.9.4 (2021-09-30T12:24:53Z)
Home
Dub
Repo
URLRouter.match
index
vibe
http
router
URLRouter
Adds a new route for requests matching the specified HTTP method and pattern.
URLRouter
match
(HTTPMethod method, string path, Handler handler)
class
URLRouter
@
safe
URLRouter
match
(
Handler
)
(
HTTPMethod
method
,
string
path
,
Handler
handler
)
if
(
isValidHandler
!
Handler
)
URLRouter
match
(HTTPMethod method, string path, HTTPServerRequestDelegate handler)
Meta
Source
See Implementation
index
vibe
http
router
URLRouter
constructors
this
functions
any
delete_
get
getAllRoutes
handleRequest
match
patch
post
put
rebuild
route
properties
enableRootDir
prefix
static functions
handlerDelegate
templates
isValidHandler
Adds a new route for requests matching the specified HTTP method and pattern.