libwasm ~master (2024-01-10T15:05:21Z)
Dub
Repo
URLRouter.register
libwasm
router
URLRouter
Adds a new route for requests matching the specified HTTP method and pattern.
class
URLRouter
@
safe
nothrow
void
register
(
string
path
)
(
Optional
!(
Promise
!void)
delegate
(
ref
RouterEvent
ev
)
nothrow @
safe
cb
,
Direction
direction
)
Meta
Source
See Implementation
libwasm
router
URLRouter
constructors
this
destructors
~this
functions
getBasePath
getDelegate
getTitle
handleLinkEvent
navigateTo
onPopState
register
setBasePath
setTitle
Adds a new route for requests matching the specified HTTP method and pattern.