vibe.http.server

Undocumented in source.

Public Imports

vibe.core.net
public import vibe.core.net;
vibe.http.log
public import vibe.http.log;
vibe.http.common
public import vibe.http.common;
vibe.http.session
public import vibe.http.session;

Members

Aliases

HTTPContext
alias HTTPContext = HTTPServerContext
Undocumented in source.
HTTPServerErrorPageHandler
alias HTTPServerErrorPageHandler = void delegate(HTTPServerRequest req, HTTPServerResponse res, HTTPServerErrorInfo error) @(safe)

Delegate type used for user defined error page generator callbacks.

HTTPServerRequestDelegate
alias HTTPServerRequestDelegate = void delegate(HTTPServerRequest req, HTTPServerResponse res) @(safe)

Delegate based request handler

HTTPServerRequestDelegateS
alias HTTPServerRequestDelegateS = void delegate(scope HTTPServerRequest req, scope HTTPServerResponse res) @(safe)
Undocumented in source.
HTTPServerRequestFunction
alias HTTPServerRequestFunction = void function(HTTPServerRequest req, HTTPServerResponse res) @(safe)

Static function based request handler

RejectConnectionPredicate
alias RejectConnectionPredicate = bool delegate(in NetworkAddress) @(safe) nothrow

Callback type used to determine whether to reject incoming connections

UncaughtException
alias UncaughtException = Throwable
Undocumented in source.
UncaughtException
alias UncaughtException = Exception
Undocumented in source.

Classes

HTTPServerContext
class HTTPServerContext

Represents a single HTTP server port.

HTTPServerSettings
class HTTPServerSettings

Contains all settings for configuring a basic HTTP server.

Enums

SessionOption
enum SessionOption

Options altering how sessions are created.

TestHTTPResponseMode
enum TestHTTPResponseMode
Undocumented in source.

Functions

createTestHTTPServerRequest
HTTPServerRequest createTestHTTPServerRequest(URL url, HTTPMethod method, InputStream data)
HTTPServerRequest createTestHTTPServerRequest(URL url, HTTPMethod method, InetHeaderMap headers, InputStream data)

Creates a HTTPServerRequest suitable for writing unit tests.

createTestHTTPServerResponse
HTTPServerResponse createTestHTTPServerResponse(OutputStream data_sink, SessionStore session_store, TestHTTPResponseMode data_mode)

Creates a HTTPServerResponse suitable for writing unit tests.

formatRFC822DateAlloc
string formatRFC822DateAlloc(IAllocator alloc, SysTime time)
Undocumented in source. Be warned that the author may not have intended to support it.
listenHTTP
HTTPListener listenHTTP(HTTPServerSettings settings)
Undocumented in source. Be warned that the author may not have intended to support it.
listenHTTP
HTTPListener listenHTTP(HTTPServerSettings settings)
Undocumented in source. Be warned that the author may not have intended to support it.
listenHTTP
HTTPListener listenHTTP(HTTPServerSettings settings, H handler)
Undocumented in source. Be warned that the author may not have intended to support it.
listenHTTP
HTTPListener listenHTTP(string bind_string, H handler)
Undocumented in source. Be warned that the author may not have intended to support it.
parseHTTP2RequestHeader
void parseHTTP2RequestHeader(R headers, HTTPServerRequest reqStruct)
Undocumented in source. Be warned that the author may not have intended to support it.
parseRequestHeader
uint parseRequestHeader(HTTPServerRequest reqStruct, InputStream http_stream, IAllocator alloc, ulong max_header_size)
Undocumented in source. Be warned that the author may not have intended to support it.
setVibeDistHost
void setVibeDistHost(string host, ushort port)

Sets a VibeDist host to register with.

staticRedirect
HTTPServerRequestDelegate staticRedirect(string url, HTTPStatus status)
HTTPServerRequestDelegate staticRedirect(URL url, HTTPStatus status)

Provides a HTTP request handler that responds with a static redirection to the specified URL.

Interfaces

HTTPServerRequestHandler
interface HTTPServerRequestHandler

Interface for class based request handlers

Properties

render
void render [@property getter]

Renders the given Diet template and makes all ALIASES available to the template.

staticTemplate
HTTPServerRequestDelegateS staticTemplate [@property getter]

Provides a HTTP request handler that responds with a static Diet template.

Structs

DefaultDietFilters
struct DefaultDietFilters

Provides the default css, javascript, markdown and htmlescape filters

HTTPListener
struct HTTPListener

Represents the request listener for a specific listenHTTP call.

HTTPServerErrorInfo
struct HTTPServerErrorInfo

Aggregates all information about an HTTP error status.

HTTPServerOption
struct HTTPServerOption

Specifies optional features of the HTTP server.

HTTPServerRequest
struct HTTPServerRequest

Represents a HTTP request as received by the server side.

HTTPServerRequestData
struct HTTPServerRequestData

/ NOTE: just a possible idea for the low level api

HTTPServerResponse
struct HTTPServerResponse

Represents a HTTP response as sent from the server side.

HTTPServerResponseData
struct HTTPServerResponseData
Undocumented in source.

Meta