vibe-d v0.9.8-alpha.3 (2023-10-20T08:14:46Z)
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.