expecting
const func boolean: expecting (in httpServerRequest: request, in string: expectation)
-
Check if the request has a particular expectation.
In accordance with the specification, this comparison is done case-insensitively.
- Parameters:
- a - previously received HTTP request.
- Returns:
- TRUE if the expectation is present; FALSE otherwise.
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 httpServerRequest: 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.