* Constructs an instance of `HttpRequestOptions ` from a source `HttpMethodOptions` and * the given `body`. This function clones the object and adds the body. * * Note that the `responseType` *options* value is a String that identifies the * single data type of the response. * A single overlo
(options: HttpClientCommonOptions, body: T | null)
| 41 | * |
| 42 | */ |
| 43 | function addBody<T>(options: HttpClientCommonOptions, body: T | null): any { |
| 44 | return { |
| 45 | body, |
| 46 | ...options, |
| 47 | }; |
| 48 | } |
| 49 | |
| 50 | /** |
| 51 | * Performs HTTP requests. |