const class wisp::WispService
sys::Obj wisp::WispService : sys::Service
Simple web server services HTTP requests on a configured port to a top-level root WebMod. A given instance of WispService can be only be used through one start/stop lifecycle.
Example:
WispService { port = 8080; root = MyWebMod() }.start
- addr
-
const IpAddr? addr := nullWhich IpAddr to bind to or null for the default.
- make
-
new make(|This|? f := null)Constructor with it-block
- maxThreads
-
const Int maxThreads := 500Max number of threads which are used for concurrent web request processing.
- onStart
-
virtual override Void onStart() - onStop
-
virtual override Void onStop() - port
-
const Int port := 80Well known TCP port for HTTP traffic.
- root
-
const WebMod root := WispDefaultMod.<ctor>()Root WebMod used to service requests.
- sessionStore
-
const WispSessionStore sessionStore := MemWispSessionStore.<ctor>()Pluggable interface for managing web session state. Default implementation stores sessions in main memory.