Optional
abilityOptional
callProtected
headersStatic
fromSend a HTTP GET request to the specified url. Optionally it is possible to chain definitions for headers as well as the expected response type.
the URL of the target.
create a new instance
simple request
Get.from('https://my-fancy-url.com');
with chained definitions
Get.from('https://my-fancy-url.com')
// add headers
.withHeaders({
key: value,
})
// define expected response format
.withResponseFormat('text');
Set the format the response body should be returned as.
the format of the response body.
the instance
Generated using TypeDoc
Send a HTTP GET Request.