const classafBedSheet::BedSheetWebMod
sys::Obj web::WebMod afBedSheet::BedSheetWebMod
The web::WebMod to be passed to Wisp.
- appName
const Str appName
Returns
proj.name
from the application's pod meta, or the pod name if not defined.- make
new make(BedSheetBuilder bob, |This? f := null)
Creates this
WebMod
. UseBedSheetBuilder
to create theRegistry
instance - it ensures all the options have been set.- port
const Int port
The port number this Bed App will be listening on.
- queueRequestsOnStartup
virtual Bool queueRequestsOnStartup()
Should HTTP requests be queued while BedSheet is starting up? It is handy in dev, because it prevents you from constantly refreshing your browser! But under heavy load in prod, the requests can quickly build up to 100s; so not such a good idea.
Returns
false
in prod,true
otherwise.- registry
Registry? registry { private set }
The IoC registry. Can be
null
if BedSheet has not yet started.- startupErr
Err? startupErr { private set }
The Err (if any) that occurred on service startup
- startupMessage
const Str startupMessage := ...
When HTTP requests are received when BedSheet is starting up, then this message is returned to the client with a 500 status code.
Defaults to:
The website is starting up... Please retry in a moment.
Change it using a ctor it-block:
BedSheetWebMod(reg) { it.startupMessage = "Computer Says No..." }