MCPcopy
hub / github.com/angular/angular / post

Method post

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

* Constructs an observable that, when subscribed, causes the configured * `POST` request to execute on the server. The server responds with the location of * the replaced resource. 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

2363 * details on the return type.
2364 */
2365 post(
2366 url: string,
2367 body: any | null,
2368 options: {
2369 observe?: 'body' | 'events' | 'response';
2370 responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
2371 } & HttpClientCommonOptions = {},
2372 ): Observable<any> {
2373 return this.request<any>('POST', url, addBody(options, body));
2374 }
2375
2376 /**
2377 * Constructs a `PUT` request that interprets the body as an `ArrayBuffer` and returns the

Callers 8

hydration_spec.tsFile · 0.80
resetDatabaseTestFunction · 0.80
addHeroMethod · 0.80
collectionHandlerFunction · 0.80
provider_spec.tsFile · 0.80
client_spec.tsFile · 0.80
request_spec.tsFile · 0.80

Calls 2

requestMethod · 0.95
addBodyFunction · 0.85

Tested by

no test coverage detected