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|ceylon.net.http.server.endpoints::serveStaticFile]…

ceylon.net.http.server.websocket
Values
startedshared started started
startingshared starting starting
stoppedshared stopped stopped
stoppingshared stopping stopping
Functions
endsWithshared Matcher endsWith(String suffix)

Rule using endsWith.

equalsshared Matcher equals(String path)

Rule using equals.

isRootshared Matcher isRoot()

Rule matching / (root).

newServershared Server newServer({HttpEndpoint|WebSocketBaseEndpoint*} endpoints)

Create a new HTTP server.

startsWithshared Matcher startsWith(String prefix)

Rule using startsWith.

Interfaces
Requestshared Request

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

Responseshared Response

An object to assist sending response to the client.

Servershared Server

A HTTP server.

Sessionshared Session

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

Classes
AsynchronousEndpointshared AsynchronousEndpoint

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

Endpointshared Endpoint

Synchronous web endpoint.

EndpointBaseshared abstract EndpointBase
HttpEndpointshared abstract HttpEndpoint
Matchershared abstract Matcher
Optionsshared Options

Options for starting a Server.

Statusshared abstract Status

The status of a Server.

UploadedFileshared UploadedFile
startedshared started
startingshared starting
stoppedshared stopped
stoppingshared stopping
Exceptions
InternalExceptionshared InternalException
ServerExceptionshared ServerException