http Module

download

string1 string2

Downloads the contents of URL string1 to the local file string2.

get-content

string1 string2

Retrieves the contents of URL string1 as string2.

request

request response

Performs an HTTP request.

start-server

dict

Starts an HTTP server based on the configuration provided in dict.

dict is a dictionary containing the following keys:

address
The address to bind the server to (default: 127.0.0.1).
port
The port to bind the server to.
handler
A quotation with the following signature, used to handle all incoming requests: requestresponse

stop-server

Stops the currently-running HTTP server. This operator should be used within an HTTP server handler quotation.