type

RouteMod

src const class RouteMod : WebMod

RouteMod routes a level of the URI path to sub-WebMods.

See pod doc

constructors

make

Constructor with it-block.

fields

routes

Map of URI path names to sub-WebMods.

methods

onService
onStart

Call onStart on sub-mods.

onStop

Call onStop on sub-mods.

Slot Details

make

src new make(|This|? f)

Constructor with it-block.

onService

src virtual override Void onService()

onStart

src virtual override Void onStart()

Call onStart on sub-mods.

onStop

src virtual override Void onStop()

Call onStop on sub-mods.

routes

src const Str:WebMod routes := [Str:WebMod][:]

Map of URI path names to sub-WebMods. The name "index" is used for requests to the RouteMod itself.