Generic method for making arbitrary HTTP requests.
Consider using specific methods for making common requests (get, post, put, patch)
Parameter | Type | Description |
---|---|---|
method | string | HTTP method. Note, the method must be uppercase (GET, POST, PUT, PATCH, OPTIONS, HEAD, etc) |
url | string | HTTP URL. If baseURL is set, provide only path. |
body (optional) | null / string / object / ArrayBuffer / SharedArray | Request body; objects will be x-www-form-urlencoded. Set to null to omit the body. |
params (optional) | null or object {} | Additional parameters for this specific request. |