MCPcopy Create free account
hub / github.com/angular/angular / put

Method put

packages/common/http/src/client.ts:2657–2666  ·  view source on GitHub ↗

* 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 = {},
  )

Source from the content-addressed store, hash-verified

2655 * See the individual overloads for details on the return type.
2656 */
2657 put(
2658 url: string,
2659 body: any | null,
2660 options: {
2661 observe?: 'body' | 'events' | 'response';
2662 responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
2663 } & HttpClientCommonOptions = {},
2664 ): Observable<any> {
2665 return this.request<any>('PUT', url, addBody(options, body));
2666 }
2667}

Callers

nothing calls this directly

Calls 2

requestMethod · 0.95
addBodyFunction · 0.85

Tested by

no test coverage detected