ServerOptions

Options to define how the server behaves.

Members

Variables

handleExceptions
bool handleExceptions;

Indicates whether the handler should catch exceptions. If set to true the server will return a 500 Internal Server Error upon catching an exception.

max
size_t max;

Indicates the maximum size for a payload. If the header Content-Length sent by the client exceeds the indicated length the server will return a 413 Payload too Large.

name
string name;

Name of the server set as value in the Server header field and displayed in lighttp's default error messages.

Meta