const mixinafBedSheet::BedSheetServer

afBedSheet::BedSheetServer

(Service) - Information about the BedSheet server.

appModule

Source

abstract Type? appModule()

The AppModule.

appName

Source

abstract Str appName()

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

appPod

Source

abstract Pod? appPod()

The pod that contains the initial AppModule.

host

Source

abstract Uri host()

The public facing domain used to create absolute URLs. This is set by BedSheetConfigIds.host.

modulePods

Source

abstract Pod[] modulePods()

Returns a unique list of pods that contain modules loaded by this BedSheet's IoC.

Useful for gaining a list of pods used in an application, should you wish to scan for classes.

moduleTypes

Source

abstract Type[] moduleTypes()

Returns a list of modules loaded by this BedSheet's IoC

options

Source

abstract Str:Obj options()

The Registry options BedSheet was started with.

path

Source

abstract Uri path()

The request path to this BedSheet WebMod. Only really relevant should BedSheet be started in a RouteMod.

Starts and ends with a /. Example, `/pub/`

Returns `/` should BedSheet be the root WebMod (the usual case).

@see web::WebReq.modBase

port

Source

abstract Int port()

The port BedSheet is listening to.

toAbsoluteUrl

Source

abstract Uri toAbsoluteUrl(Uri clientUrl, Str? scheme := null)

Creates an absolute URL for public use; including scheme and authority (host). The given clientUrl should be relative to the host and start with a /.

The scheme, if null, defaults to whatever was set in BedSheetConfigIds.host.

toClientUrl

Source

abstract Uri toClientUrl(Uri localUrl)

Prepends any extra WebMod path info to the given URL so it may be used by clients and browsers. The given WebMod local URL should be relative to the BedSheet WebMod and may, or may not, start with a /.