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
RegistryBuilder
that creates everything this Bed App needs.- make
new make(Str moduleName, Int port, [Str:Obj?]? registryOptions := null, |This? f := null)
Creates this
WebMod
.moduleName
can be a qualified type name of an AppModule or a pod name.port
is required for reporting purposes only. (Wisp binds to the port, not BedSheet.)- moduleName
const Str moduleName
The module name passed into the ctor. Can be either a qualified type name of an AppModule or a pod name.
- 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
afIoc
registry. Can benull
if 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 moment.