MCPcopy
hub / github.com/angular/angular / put

Method put

packages/common/http/src/client.ts:2663–2672  ·  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

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}

Callers

nothing calls this directly

Calls 2

requestMethod · 0.95
addBodyFunction · 0.85

Tested by

no test coverage detected