const classafBedSheet::BedSheetWebMod

sys::Obj
  web::WebMod
    afBedSheet::BedSheetWebMod

The web::WebMod to be passed to Wisp.

appName

Source

const Str appName

Returns proj.name from the application's pod meta, or the pod name if not defined.

make

Source

new make(BedSheetBuilder bob, |This? f := null)

Creates this WebMod. Use BedSheetBuilder to create the Registry instance - it ensures all the options have been set.

port

Source

const Int port

The port number this Bed App will be listening on.

queueRequestsOnStartup

Source

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

Source

Registry? registry { private set }

The IoC registry. Can be null if BedSheet has not yet started.

startupErr

Source

Err? startupErr { private set }

The Err (if any) that occurred on service startup

startupMessage

Source

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..."
}