Requests
The 'requests' module provides HTTP/S functionality
Function Signatures
// Sends a GET request to the specified URL.
const get = (url: String, headers: Object = {}) => Object
// Sends a POST request to the specified URL with the provided payload.
const post = (url: String, payload: Object | String, headers: Object = {})
=> Object
// Sends a PUT request to the specified URL with the provided payload.
const put = (url: String, payload: Object | String, headers: Object = {})
=> Object
// Sends a PATCH request to the specified URL with the provided payload.
const patch = (url: String, payload: Object | String, headers: Object = {})
=> Object
// Sends a DELETE request to the specified URL.
const del = (url: String, headers: Object = {}) => Object
// Sends an OPTIONS request to the specified URL.
const options = (url: String, headers: Object = {}) => Object
// Sends a HEAD request to the specified URL.
const head = (url: String, headers: Object = {}) => Object
Last updated