const classafBedSheet::BedSheetWebMod
sys::Obj web::WebMod afBedSheet::BedSheetWebMod
The web::WebMod to be passed to Wisp.
- createBob
static RegistryBuilder createBob(Str moduleName, Int port, [Str:Obj?]? options := null)Returns a fully loaded IoC
RegistryBuilderthat creates everything this Bed App needs.- make
new make(Str moduleName, Int port, [Str:Obj?]? registryOptions := null, |This? f := null)Creates this
WebMod.moduleNamecan be a qualified type name of an AppModule or a pod name.portis required for reporting purposes only. (Wisp binds to the port, not BedSheet.)- moduleName
const Str moduleNameThe module name passed into the ctor. Can be either a qualified type name of an AppModule or a pod name.
- port
const Int portThe 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
falsein prod,trueotherwise.- registry
Registry? registry { private set }The
afIocregistry. Can benullif BedSheet has not 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 few seconds.