A HTTP server. This package defines the API for creating a new server and defining endpoints using:

See ceylon.net.http.server.endpoints for predefined covenience endpoints for serving static files and HTTP redirection.

By: Matej Lazar
Subpackages
ceylon.net.http.server.endpoints

Predefined HTTP endpoint implementations for serving static files and HTTP redirection.

ceylon.net.http.server.websocket
Values
startedSource Codeshared started started
startingSource Codeshared starting starting
stoppedSource Codeshared stopped stopped
stoppingSource Codeshared stopping stopping
Functions
endsWithSource Codeshared Matcher endsWith(String suffix)

Rule using String.endsWith().

equalsSource Codeshared Matcher equals(String path)

Rule using String.equals().

isRootSource Codeshared Matcher isRoot()

Rule matching / (root).

newServerSource Codeshared Server newServer({HttpEndpoint|WebSocketBaseEndpoint*} endpoints)

Create a new HTTP server.

startsWithSource Codeshared Matcher startsWith(String prefix)

Rule using String.startsWith().

Interfaces
RequestSource Codeshared Request

Defines an object to provide client request information to a web endpoint.

ResponseSource Codeshared Response

An object to assist sending response to the client.

ServerSource Codeshared Server

A HTTP server.

SessionSource Codeshared Session

An object representing a session between a server and a client.

Classes
AsynchronousEndpointSource Codeshared AsynchronousEndpoint

Asynchronous web endpoint. Endpoint is executed asynchronously. End of request processing must be signaled by calling complete().

EndpointSource Codeshared Endpoint

Synchronous web endpoint.

EndpointBaseSource Codeshared abstract EndpointBase
HttpEndpointSource Codeshared abstract HttpEndpoint
MatcherSource Codeshared abstract Matcher
OptionsSource Codeshared Options

Options for starting a Server.

StatusSource Codeshared abstract Status

The status of a Server.

UploadedFileSource Codeshared UploadedFile
startedSource Codeshared started
startingSource Codeshared starting
stoppedSource Codeshared stopped
stoppingSource Codeshared stopping
Exceptions
InternalExceptionSource Codeshared InternalException
ServerExceptionSource Codeshared ServerException