BBLANG
HTTP
bb:http:req(url|options, callback)options : {
method: // HTTP Method (default: "GET"),
url: // URL to send request to
headers: // HTTP Headers,
body: // Request Body
form: // Accepts data in map format and adds "Content-type: application/x-www-form-urlencoded" in the header
formData: // Data to pass for a multipart/form-data request
json: // sets body to json representation of the value and adds "Content-Type: application/json" to the header
auth: // Basic Authentication data
oauth: // Options for OAuth signing (default: HMAC-SHA1)
encoding: // encoding to be used on setEncoding header of response data (pass null for Buffer data)
}HTTP Response
Examples
Examples
MEMORY
Examples
Examples
Examples
UTILS
Last updated