* 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 = {},
)
| 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. |