vibe.d beta banner
get vibe.d
0.8.1

Asynchronous I/O that doesn’t get in your way, written in D

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.bodyReader stream whenever a request body with form or JSON data is encountered.

Enum members

NameDescription
defaultsThe default set of options.

Includes all options, except for distribute.

distributeDistributes request processing among worker threads
errorStackTracesEnables 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.

none
Nonedeprecated
parseCookiesFills the .cookies field in the request
ParseCookiesdeprecated
parseFormBodyFills the .form field in the request
ParseFormBodydeprecated
parseJsonBodyFills the .json field in the request
ParseJsonBodydeprecated
parseMultiPartBodyEnables use of the .nextPart() method in the request
ParseMultiPartBodydeprecated
parseQueryStringFills the .query field in the request
ParseQueryStringdeprecated
parseURLFills the .path, .queryString fields in the request
ParseURLdeprecated
reusePortEnable port reuse in listenTCP()
Authors

Sönke Ludwig, Jan Krüger, Ilya Shipunov

Copyright

© 2012-2013 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.