Value | Meaning |
---|---|
none0 | |
errorStackTraces1 << 7 | Enables stack traces (HTTPServerErrorInfo.debugMessage). 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. |
reusePort1 << 8 | Enable port reuse in listenTCP() |
reuseAddress1 << 10 | Enable address reuse in listenTCP() |
defaults ()() | The default set of options. Includes all parsing options, as well as the errorStackTraces option if the code is compiled in debug mode. |
Nonenone | Deprecated: None has been renamed to none. |
Specifies optional features of the HTTP server.
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.bodyReader stream whenever a request body with form or JSON data is encountered.