MCPcopy Index your code
hub / github.com/angular/angular / patch

Method patch

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

* Constructs an observable that, when subscribed, causes the configured * \`PATCH\` request to execute on the server. 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

2064 * details on the return type.
2065 */
2066 patch(
2067 url: string,
2068 body: any | null,
2069 options: {
2070 observe?: 'body' | 'events' | 'response';
2071 responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
2072 } & HttpClientCommonOptions = {},
2073 ): Observable<any> {
2074 return this.request<any>('PATCH', url, addBody(options, body));
2075 }
2076
2077 /**
2078 * Constructs a `POST` request that interprets the body as an `ArrayBuffer` and returns

Callers

nothing calls this directly

Calls 2

requestMethod · 0.95
addBodyFunction · 0.85

Tested by

no test coverage detected