Signature: httpListen(serverID: int, handler: (string, string, string, string) -> HttpResponse) -> int

Description: Starts the HTTP server listening for requests with a handler function.

Parameters

Returns: int

Example

let result = httpListen(serverId, requestHandler)
print("Server listening")