Module vibe.http.server

A HTTP 1.1/1.0 server implementation.

Functions

Name Description
formatAlloc
listenHTTP Starts a HTTP server listening on the specified port.
listenHTTPPlain Compatibility alias, will be deprecated soon.
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

Name Description
HTTPServerRequestHandler Interface for class based request handlers

Classes

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.

Enums

Name Description
HTTPServerOption Specifies optional features of the HTTP server.

Aliases

Name Type Description
HttpServerErrorInfo HTTPServerErrorInfo Compatibility alias, will be deprecated soon.
HttpServerErrorPageHandler void delegate(HTTPServerRequest, HTTPServerResponse, HTTPServerErrorInfo) Compatibility alias, will be deprecated soon.
HTTPServerErrorPageHandler void delegate(HTTPServerRequest, HTTPServerResponse, HTTPServerErrorInfo) Delegate type used for user defined error page generator callbacks.
HttpServerOption HTTPServerOption Compatibility alias, will be deprecated soon.
HttpServerRequest HTTPServerRequest Compatibility alias, will be deprecated soon.
HttpServerRequestDelegate void delegate(HTTPServerRequest, HTTPServerResponse) Compatibility alias, will be deprecated soon.
HTTPServerRequestDelegate void delegate(HTTPServerRequest, HTTPServerResponse) Delegate based request handler
HTTPServerRequestFunction void function(HTTPServerRequest, HTTPServerResponse) Static function based request handler
HttpServerRequestFunction void function(HTTPServerRequest, HTTPServerResponse) Compatibility alias, will be deprecated soon.
HttpServerRequestHandler HTTPServerRequestHandler Compatibility alias, will be deprecated soon.
HttpServerResponse HTTPServerResponse Compatibility alias, will be deprecated soon.
HttpServerSettings HTTPServerSettings Compatibility alias, will be deprecated soon.
IHttpServerRequestHandler HTTPServerRequestHandler Compatibility alias.
listenHttp Compatibility alias, will be deprecated soon.
listenHttpPlain Compatibility alias, will be deprecated soon.

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.