HttpServer

Undocumented in source.

Constructors

this
this(Duration timeout)
Undocumented in source.

Members

Functions

close
void close()
Undocumented in source. Be warned that the author may not have intended to support it.
createConnection
IConnection createConnection(TcpConnection tcp)
Undocumented in source. Be warned that the author may not have intended to support it.
listen
ushort listen(ushort port, string addr)
Undocumented in source. Be warned that the author may not have intended to support it.
listen
void listen(AddressInfo[] addresses)
Undocumented in source. Be warned that the author may not have intended to support it.
onAccept
void onAccept(TcpConnection incoming)
Undocumented in source. Be warned that the author may not have intended to support it.
onClose
void onClose()
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

defaultTimeout
enum defaultTimeout;
Undocumented in source.

Properties

protocol
string protocol [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

banner
string banner;
Undocumented in source.
conn
TcpServer conn;
Undocumented in source.
connections
SEDListContainer!HttpServerConnection connections;

Single-ended doubly-linked list of active connections

handleClose
void delegate() handleClose;

Callback for when the socket was closed.

handleRequest
void delegate(HttpRequest request, HttpServerConnection conn) handleRequest;

Callback for an incoming request.

log
Logger log;
Undocumented in source.
timeout
Duration timeout;
Undocumented in source.

Meta