Function: head()
Issue an HTTP HEAD (response headers only, no body). Convenience wrapper around fetcher. Useful for cache validation, content-length probing, or existence checks without the body transfer cost.Call Signature
head<Defined in: packages/http/src/fetcher.ts:758T>(url,options?,params?):Effect<T,FetcherValidationError|FetcherError,HttpClient>
Type Parameters
T
T = unknown
Parameters
url
string
options?
FetcherOptions<T>
params?
Returns
Effect<T, FetcherValidationError | FetcherError, HttpClient>
Call Signature
head<Defined in: packages/http/src/fetcher.ts:764S>(url,options,params?):Effect<Type<S>,FetcherValidationError|FetcherError,HttpClient>
Type Parameters
S
S extends SyncSchema<Type<S>>
Parameters
url
string
options
FetcherOptions<Type<S>> & object
params?
Returns
Effect<Type<S>, FetcherValidationError | FetcherError, HttpClient>