Skip to main content

Function: options()

Issue an HTTP OPTIONS. Used for CORS pre-flight discovery and server-supported-method probes. Convenience wrapper around fetcher.

Call Signature

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

Type Parameters

T

T = unknown

Parameters

url

string

options?

FetcherOptions<T>

params?

Returns

Effect<T, FetcherValidationError | FetcherError, HttpClient>

Call Signature

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

Type Parameters

S

S extends SyncSchema<Type<S>>

Parameters

url

string

options

FetcherOptions<Type<S>> & object

params?

Returns

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