Skip to main content

HTTP

http-get

| http-get(url String, options Object?) | (body String)

Http(s) GET url, results in response body as a string or nil on error. Takes an optional options object, currently only supports headers.

http-post

(req-body String) | http-post(url String, options Object?) | (body String)

Http(s) POST to url with req-body as the request body, results in response body as a string or nil on error. Takes an optional options object, currently only supports headers.

Rate this page