Module vibe.http.server
Functions
Function name | Description |
---|---|
enforceHttp | Utility function that throws a HttpStatusException if the condition is not met. |
formatAlloc | |
listenHttp | Starts a HTTP server listening on the specified port. |
listenHttpPlain | Starts a HTTP server listening on the specified port. |
render | Renders the given template and makes all ALIASES available to the template. |
setVibeDistHost | Sets a VibeDist host to register with. |
startListening | |
staticRedirect | Provides a HTTP request handler that responds with a static redirection to the specified URL. |
staticTemplate | Provides a HTTP request handler that responds with a static Diet template. |
Interfaces
Interface name | Description |
---|---|
IHttpServerRequestHandler | Interface for class based request handlers |
Classes
Class name | Description |
---|---|
HttpServerErrorInfo | Aggregates all information about an HTTP error status. |
HttpServerRequest | Represents a HTTP request as received by the server side. |
HttpServerResponse | Represents a HTTP response as sent from the server side. |
HttpServerSettings | Contains all settings for configuring a basic HTTP server. |
HttpStatusException | Throwing this exception from within a request handler will produce a matching error page. |
Enums
Enum name | Description |
---|---|
HttpServerOption | Specifies optional features of the HTTP server. |
Aliases
Alias name | Type | Description |
---|---|---|
HttpServerErrorPageHandler | void delegate(HttpServerRequest req, HttpServerResponse res, HttpServerErrorInfo error) | Delegate type used for user defined error page generator callbacks. |
HttpServerRequestDelegate | void delegate(HttpServerRequest req, HttpServerResponse res) | Delegate based request handler |
HttpServerRequestFunction | void function(HttpServerRequest req, HttpServerResponse res) | Static function based request handler |
Authors
Sönke Ludwig, Jan Krüger
Copyright
© 2012 RejectedSoftware e.K.
License
Subject to the terms of the MIT license, as written in the included LICENSE.txt file.