Skip to main content

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<T>(url, options?, params?): Effect<T, FetcherValidationError | FetcherError, HttpClient>
Defined in: packages/http/src/fetcher.ts:758

Type Parameters

T

T = unknown

Parameters

url

string

options?

FetcherOptions<T>

params?

Returns

Effect<T, FetcherValidationError | FetcherError, HttpClient>

Call Signature

head<S>(url, options, params?): Effect<Type<S>, FetcherValidationError | FetcherError, HttpClient>
Defined in: packages/http/src/fetcher.ts:764

Type Parameters

S

S extends SyncSchema<Type<S>>

Parameters

url

string

options

FetcherOptions<Type<S>> & object

params?

Returns

Effect<Type<S>, FetcherValidationError | FetcherError, HttpClient>