Enum HTTPServerOption
Specifies optional features of the HTTP server.
enum HTTPServerOption
: int { ... }
Disabling unneeded features can speed up the server or reduce its memory usage.
Note that the options parseFormBody
, parseJsonBody
and parseMultiPartBody
will also drain the HTTPServerRequest
stream whenever a request
body with form or JSON data is encountered.
Enum members
Name | Description |
---|---|
defaults
|
The default set of options.
Includes all parsing options, as well as the |
errorStackTraces
|
Enables stack traces (HTTPServerErrorInfo ).
Note that generating the stack traces are generally a costly operation that should usually be avoided in production environments. It can also reveal internal information about the application, such as function addresses, which can help an attacker to abuse possible security holes. |
none
|
|
reuseAddress
|
Enable address reuse in listenTCP()
|
reusePort
|
Enable port reuse in listenTCP()
|