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

Predefined HTTP endpoint implementations for [[serving static files|ceylon.net.http.server.endpoints::serveStaticFile]…

startedshared started started
startingshared starting starting
stoppedshared stopped stopped
stoppingshared stopping stopping
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.

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.

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
InternalExceptionshared InternalException
ServerExceptionshared ServerException