MCPcopy
hub / github.com/angular/angular / head

Method head

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

1445 * details on the return type.
1446 */
1447 head(
1448 url: string,
1449 options: {
1450 observe?: 'body' | 'events' | 'response';
1451 responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
1452 } & HttpClientCommonOptions = {},
1453 ): Observable<any> {
1454 return this.request<any>('HEAD', url, options as any);
1455 }
1456
1457 /**
1458 * 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