* 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 = {},
)
| 2953 | * See the individual overloads for details on the return type. |
| 2954 | */ |
| 2955 | put( |
| 2956 | url: string, |
| 2957 | body: any | null, |
| 2958 | options: { |
| 2959 | observe?: 'body' | 'events' | 'response'; |
| 2960 | responseType?: 'arraybuffer' | 'blob' | 'json' | 'text'; |
| 2961 | } & HttpClientCommonOptions = {}, |
| 2962 | ): Observable<any> { |
| 2963 | return this.request<any>('PUT', url, addBody(options, body)); |
| 2964 | } |
| 2965 | } |