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

Method put

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

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}

Callers

nothing calls this directly

Calls 2

requestMethod · 0.95
addBodyFunction · 0.85

Tested by

no test coverage detected