const mixinafBedSheet::BedSheetServer
afBedSheet::BedSheetServer
(Service) - Information about the BedSheet server.
- appModule
abstract Type? appModule()
The
AppModule
.- appName
abstract Str appName()
Returns
proj.name
from the application's pod meta, or the pod name if not defined.- appPod
abstract Pod? appPod()
The pod that contains the initial
AppModule
.- host
abstract Uri host()
The public facing domain used to create absolute URLs. This is set by
BedSheetConfigIds.host
.- modulePods
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
abstract Type[] moduleTypes()
Returns a list of modules loaded by this BedSheet's IoC
- options
The Registry options BedSheet was started with.
- path
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 rootWebMod
(the usual case).@see web::WebReq.modBase
- port
abstract Int port()
The port BedSheet is listening to.
- toAbsoluteUrl
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
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 givenWebMod
local URL should be relative to the BedSheetWebMod
and may, or may not, start with a/
.