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

Method head

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

* Constructs an observable that, when subscribed, causes the configured * \`HEAD\` request to execute on the server. The \`HEAD\` method returns * meta information about the resource without transferring the * resource itself. See the individual overloads for * details on the return type

(
    url: string,
    options: {
      observe?: 'body' | 'events' | 'response';
      responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
    } & HttpClientCommonOptions = {},
  )

Source from the content-addressed store, hash-verified

1437 * details on the return type.
1438 */
1439 head(
1440 url: string,
1441 options: {
1442 observe?: 'body' | 'events' | 'response';
1443 responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
1444 } & HttpClientCommonOptions = {},
1445 ): Observable<any> {
1446 return this.request<any>('HEAD', url, options as any);
1447 }
1448
1449 /**
1450 * Constructs a `JSONP` request for the given URL and name of the callback parameter.

Callers

nothing calls this directly

Calls 1

requestMethod · 0.95

Tested by

no test coverage detected