For HTTPS support, you must load the io.sockets.secure vocab first. If you don't need HTTPS support, don't load io.sockets.secure; this will reduce the size of images generated by tools.deploy.
For authentication, only Basic Access Authentication is implemented, using the username/password from the target or proxy url. Alternatively, the set-basic-auth or set-proxy-basic-auth words can be called on the request object.
The http client can use an HTTP proxy transparently, by using the HTTP(S) proxy variables. Additionally, the proxy variables can be ignored by setting the proxy-url slot of each request manually:
•
Setting proxy-url to f prevents http.client from using a proxy.
•
Setting the slots of the default empty url in proxy-url overrides the corresponding values from the proxy variables.