Libraries
Httpserv Source Code
 previous   up   next 

Types
httpRequest
Destribes a HTTP request.
httpServerConnection
Destribes a HTTP server connection.
httpServer
Destribes a HTTP server.

httpRequest

const type: httpRequest

Destribes a HTTP request.


httpServerConnection

const type: httpServerConnection

Destribes a HTTP server connection.


httpServer

const type: httpServer

Destribes a HTTP server.


Function Summary
httpServer
openHttpServer (in integer: port, in certAndKey: certificate, in boolean: useTls)
Open a HTTP or HTTPS server at the given port.
httpRequest
getHttpRequest (inout httpServer: server)
Get the next HTTP request from the HTTP or HTTPS server.

Function Detail

openHttpServer

const func httpServer: openHttpServer (in integer: port, in certAndKey: certificate, in boolean: useTls)

Open a HTTP or HTTPS server at the given port.

Parameters:
port - Port of the HTTP/HTTPS server.
certificate - Server certificate used for HTTPS.
useTls - TRUE if an HTTPS server should be opened, or FALSE if an HTTP server should be opened.
Returns:
an open HTTP or HTTPS server.

getHttpRequest

const func httpRequest: getHttpRequest (inout httpServer: server)

Get the next HTTP request from the HTTP or HTTPS server. If necessary this function waits until a request is received.

Parameters:
server - HTTP or HTTPS server that receives the request.
Returns:
the received HTTP request.


 previous   up   next