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