type

RouteMod

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

new make(|This|? f)

Constructor with it-block.

onService

virtual override Void onService()

onStart

virtual override Void onStart()

Call onStart on sub-mods.

onStop

virtual override Void onStop()

Call onStop on sub-mods.

routes

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.