dast ~master (2026-11-07T20:52:07.6172367)
Dub
Repo
Server
dast
uwsgi
Undocumented in source.
class
Server {
import
std
.
concurrency
;
;
alias
Handler
=
void
delegate
(
Request
req
,
Response
resp
)
;
protected
Handler
handler
;
void
delegate
(
Exception
e
)
onError
;
bool
running
;
Socket
listener
;
Thread
[]
threads
;
this
(Handler dg);
this
(void function(Request req, Response resp) fn);
void
mainLoop
();
void
start
(ushort port, uint maxThread);
}
Constructors
this
this
(Handler dg)
Undocumented in source.
this
this
(void function(Request req, Response resp) fn)
Undocumented in source.
Members
Aliases
Handler
alias
Handler
=
void
delegate
(
Request
req
,
Response
resp
)
Undocumented in source.
Functions
mainLoop
void
mainLoop
()
Undocumented in source. Be warned that the author may not have intended to support it.
start
void
start
(ushort port, uint maxThread)
Undocumented in source. Be warned that the author may not have intended to support it.
Variables
handler
Handler
handler
;
Undocumented in source.
listener
Socket
listener
;
Undocumented in source.
onError
void
delegate
(
Exception
e
)
onError
;
Undocumented in source.
running
bool
running
;
Undocumented in source.
threads
Thread
[]
threads
;
Undocumented in source.
Meta
Source
See Implementation
dast
uwsgi
classes
Request
Response
Server
structs
Header