Sends a HEAD request. Shorthand for HttpRequest with Method: 'HEAD'.
ResponseType is forced to none because a HEAD response has no body by definition, so Data
is always null — use Status and Headers. Pair with ThrowOnError: false when probing a
URL's reachability, so a 4xx is reported as a status rather than thrown.
Type Parameters
T = unknown
unused in practice; Data is always null.
Parameters
url: string
absolute URL, or a path when config.BaseURL is supplied.
Sends a
HEADrequest. Shorthand for HttpRequest withMethod: 'HEAD'.ResponseTypeis forced tononebecause a HEAD response has no body by definition, soDatais alwaysnull— useStatusandHeaders. Pair withThrowOnError: falsewhen probing a URL's reachability, so a 4xx is reported as a status rather than thrown.