ServerConfig

Describes one configuration for how a listener can receive HTTP requests and send responses.

Members

Enums

Protocol
enum Protocol

Protocol in which requests arrive and responses should be sent in

Transport
enum Transport

Low-level transport to listen on.

Structs

Listen
struct Listen

Listen parameters

SSL
struct SSL

SSL parameters. If set, enables TLS.

Variables

listen
Listen listen;

Listen parameters

logDir
string logDir;

Directory where logs are to be saved. If null, just write to stderr.

nph
Nullable!bool nph;

Whether "No Parsed Headers" mode is enabled or not (null = autodetect).

password
string password;

Require this password via HTTP basic authentication, if set.

prefix
string prefix;

URL prefix that requests are expected to start with.

protocol
Protocol protocol;

Protocol in which requests arrive and responses should be sent in

ssl
SSL ssl;

SSL parameters. If set, enables TLS.

transport
Transport transport;

Low-level transport to listen on.

username
string username;

Require this username via HTTP basic authentication, if set.

Meta