The request body, or null
if one isn't set.
Bodies are not enforced to be immutable, as they can include a reference to any user-defined data type. However, interceptors should take care to preserve idempotence by treating them as such.
Outgoing headers for this request.
The outgoing HTTP request method.
Outgoing URL parameters.
Whether this request should be made in a way that exposes progress events.
Progress events are expensive (change detection runs on each event) and so they should only be requested if the consumer intends to monitor them.
The expected response type of the server.
This is used to parse the response appropriately before returning it to the requestee.
The outgoing URL with all URL parameters set.
Whether this request should be sent with outgoing credentials (cookies).
Examine the body and attempt to infer an appropriate MIME type for it.
If no such type can be inferred, this method will return null
.
Transform the free-form body into a serialized format suitable for transmission to the server.
Generated using TypeDoc
An outgoing HTTP request with an optional typed body.
HttpRequest
represents an outgoing request, including URL, method, headers, body, and other request configuration options. Instances should be assumed to be immutable. To modify aHttpRequest
, theclone
method should be used.