Performs a PUT request to the specified endpoint URL.
Octave.Http.put(url, headers, data)
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
url | String | Yes | URL to POST. |
headers | String | No | A mapping of header names and values. |
data | String | No | The POST body. |
Returns
Returns a response object with the following keys:
Field | Type | Description |
---|---|---|
headers | String | Map of header keys and values. |
status | Integer | HTTP status code. |
message | String | HTTP status message. |
contentType | String | Value of HTTP Content-Type header. |
content | String | Response body. |