* Constructs an observable that, when subscribed, causes the configured * `PUT` request to execute on the server. The `PUT` method replaces an existing resource * with a new set of values. * See the individual overloads for details on the return type.
(
url: string,
body: any | null,
options: {
observe?: 'body' | 'events' | 'response';
responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
} & HttpClientCommonOptions = {},
)
| 2661 | * See the individual overloads for details on the return type. |
| 2662 | */ |
| 2663 | put( |
| 2664 | url: string, |
| 2665 | body: any | null, |
| 2666 | options: { |
| 2667 | observe?: 'body' | 'events' | 'response'; |
| 2668 | responseType?: 'arraybuffer' | 'blob' | 'json' | 'text'; |
| 2669 | } & HttpClientCommonOptions = {}, |
| 2670 | ): Observable<any> { |
| 2671 | return this.request<any>('PUT', url, addBody(options, body)); |
| 2672 | } |
| 2673 | } |