Libraries |
|
Httpserv | Source Code |
|
|
Types | ||||
| ||||
| ||||
|
Function Summary | |||||
httpServer |
| ||||
httpRequest |
|
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.
|
|