/** * Construct a PUT request which interprets the body as an `ArrayBuffer` and returns it. * * @return an `Observable` of the body as an `ArrayBuffer`. */ put(url: string, body: any|null, options: { headers?: HttpHeaders | {[header: string]: string | string[]}, observe?: 'body', params?: HttpParams|{[param: string]: string | string[]}, reportProgress?: boolean, responseType: 'arraybuffer', withCredentials?: boolean, }): Observable; /** * Construct a PUT request which interprets the body as a `Blob` and returns it. * * @return an `Observable` of the body as a `Blob`. */ put(url: string, body: any|null, options: { headers?: HttpHeaders | {[header: string]: string | string[]}, observe?: 'body', params?: HttpParams|{[param: string]: string | string[]}, reportProgress?: boolean, responseType: 'blob', withCredentials?: boolean, }): Observable; /** * Construct a PUT request which interprets the body as text and returns it. * * @return an `Observable` of the body as a `string`. */ put(url: string, body: any|null, options: { headers?: HttpHeaders | {[header: string]: string | string[]}, observe?: 'body', params?: HttpParams|{[param: string]: string | string[]}, reportProgress?: boolean, responseType: 'text', withCredentials?: boolean, }): Observable; /** * Construct a PUT request which interprets the body as an `ArrayBuffer` and returns the full event stream. * * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `ArrayBuffer`. */ put(url: string, body: any|null, options: { headers?: HttpHeaders | {[header: string]: string | string[]}, observe: 'events', params?: HttpParams|{[param: string]: string | string[]}, reportProgress?: boolean, responseType: 'arraybuffer', withCredentials?: boolean, }): Observable>; /** * Construct a PUT request which interprets the body as a `Blob` and returns the full event stream. * * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Blob`. */ put(url: string, body: any|null, options: { headers?: HttpHeaders | {[header: string]: string | string[]}, observe: 'events', params?: HttpParams|{[param: string]: string | string[]}, reportProgress?: boolean, responseType: 'blob', withCredentials?: boolean, }): Observable>; /** * Construct a PUT request which interprets the body as text and returns the full event stream. * * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `string`. */ put(url: string, body: any|null, options: { headers?: HttpHeaders | {[header: string]: string | string[]}, observe: 'events', params?: HttpParams|{[param: string]: string | string[]}, reportProgress?: boolean, responseType: 'text', withCredentials?: boolean, }): Observable>; /** * Construct a PUT request which interprets the body as JSON and returns the full event stream. * * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Object`. */ put(url: string, body: any|null, options: { headers?: HttpHeaders | {[header: string]: string | string[]}, observe: 'events', params?: HttpParams|{[param: string]: string | string[]}, reportProgress?: boolean, responseType?: 'json', withCredentials?: boolean, }): Observable>; /** * Construct a PUT request which interprets the body as JSON and returns the full event stream. * * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `T`. */ put(url: string, body: any|null, options: { headers?: HttpHeaders | {[header: string]: string | string[]}, observe: 'events', responseType?: 'json', withCredentials?: boolean, }): Observable>; /** * Construct a PUT request which interprets the body as an `ArrayBuffer` and returns the full response. * * @return an `Observable` of the `HttpResponse` for the request, with a body type of `ArrayBuffer`. */ put(url: string, body: any|null, options: { headers?: HttpHeaders | {[header: string]: string | string[]}, observe: 'response', params?: HttpParams|{[param: string]: string | string[]}, reportProgress?: boolean, responseType: 'arraybuffer', withCredentials?: boolean, }): Observable>; /** * Construct a PUT request which interprets the body as a `Blob` and returns the full response. * * @return an `Observable` of the `HttpResponse` for the request, with a body type of `Blob`. */ put(url: string, body: any|null, options: { headers?: HttpHeaders | {[header: string]: string | string[]}, observe: 'response', params?: HttpParams|{[param: string]: string | string[]}, reportProgress?: boolean, responseType: 'blob', withCredentials?: boolean, }): Observable>; /** * Construct a PUT request which interprets the body as text and returns the full response. * * @return an `Observable` of the `HttpResponse` for the request, with a body type of `string`. */ put(url: string, body: any|null, options: { headers?: HttpHeaders | {[header: string]: string | string[]}, observe: 'response', params?: HttpParams|{[param: string]: string | string[]}, reportProgress?: boolean, responseType: 'text', withCredentials?: boolean, }): Observable>; /** * Construct a PUT request which interprets the body as JSON and returns the full response. * * @return an `Observable` of the `HttpResponse` for the request, with a body type of `Object`. */ put(url: string, body: any|null, options: { headers?: HttpHeaders | {[header: string]: string | string[]}, observe: 'response', params?: HttpParams|{[param: string]: string | string[]}, reportProgress?: boolean, responseType?: 'json', withCredentials?: boolean, }): Observable>; /** * Construct a PUT request which interprets the body as JSON and returns the full response. * * @return an `Observable` of the `HttpResponse` for the request, with a body type of `T`. */ put(url: string, body: any|null, options: { headers?: HttpHeaders | {[header: string]: string | string[]}, observe: 'response', params?: HttpParams|{[param: string]: string | string[]}, reportProgress?: boolean, responseType?: 'json', withCredentials?: boolean, }): Observable>; /** * Construct a PUT request which interprets the body as JSON and returns it. * * @return an `Observable` of the body as an `Object`. */ put(url: string, body: any|null, options?: { headers?: HttpHeaders | {[header: string]: string | string[]}, observe?: 'body', params?: HttpParams|{[param: string]: string | string[]}, reportProgress?: boolean, responseType?: 'json', withCredentials?: boolean, }): Observable; /** * Construct a PUT request which interprets the body as JSON and returns it. * * @return an `Observable` of the body as type `T`. */ put(url: string, body: any|null, options?: { headers?: HttpHeaders | {[header: string]: string | string[]}, observe?: 'body', params?: HttpParams|{[param: string]: string | string[]}, reportProgress?: boolean, responseType?: 'json', withCredentials?: boolean, }): Observable; /** * Constructs an `Observable` which, when subscribed, will cause the configured * POST request to be executed on the server. See the individual overloads for * details of `post()`'s return type based on the provided options. */ put(url: string, body: any|null, options: { headers?: HttpHeaders | {[header: string]: string | string[]}, observe?: HttpObserve, params?: HttpParams|{[param: string]: string | string[]}, reportProgress?: boolean, responseType?: 'arraybuffer'|'blob'|'json'|'text', withCredentials?: boolean, } = {}): Observable { return this.request('PUT', url, addBody(options, body)); }