Run HTTP commands from the calling machine.
Perform aDELETErequest to a URL
the url to request
the body to send as part of the request
options used byrequest
for http processing
Download a file from a URL
the url to download from
the local file to download to
timeout in seconds (optional)
//gets `bigBuckBunny.mxf` from 'https://example.com' to a local path of '/tmp/downloads/bigBuckBunny.mxf' with a timeout of 10 seconds
const success = busby.http.download('http://example.com/bigBuckBunny.mxf', '/tmp/downloads/bigBuckBunny.mxf', 10)
Perform aGETrequest to a URL
the url to request
options used byrequest
for http processing
Get the last response
Get the last response status code
Perform aPATCHrequest to a URL
the url to request
the body to send as part of the request
options used byrequest
for http processing
Perform aPOSTrequest to a URL
the url to request
the body to send as part of the request
options used byrequest
for http processing
POSTform data to a URL
the url to request
the form to send as part of the request
options used byrequest
for http processing
Perform aPUTrequest to a URL
the url to request
the body to send as part of the request
options used byrequest
for http processing