The type of the data payload
OptionaldataThe request body data.
If not a string or Buffer, the data will be JSON-encoded automatically.
Ignored if serializeBody is provided.
OptionalgetFunction returning content-related headers.
Takes precedence over the headers property.
Headers as HttpHeaders record or Headers object
OptionalheadersHTTP headers for the request.
Used as fallback when getContentHeaders is not provided.
OptionalserializeCustom body serialization function.
When provided, this function is called to serialize the request body.
Takes precedence over the data property.
Configuration options for HTTP requests.
RequestOptions provides flexible ways to specify request body and headers for Resource HTTP methods (GET, POST, PUT, PATCH, DELETE).
Example