Performs a GET request to the specified endpoint URL.
Octave.Http.get(url, headers)
Parameters
url
: URL to GET.headers
: a mapping of header names and values.
Parameter | Type | Required | Description |
---|---|---|---|
url | String | Yes | URL to GET. |
headers | String | Yes | Mapping of header names and values. |
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. |