Skip to main content Link Search Menu Expand Document (external link)

Client overview

Added in v1.3.0


Table of contents


constructor

create

Signature

export declare const create: <E = never, R = never>(
  config: Config<E, R>
) => Effect<Handlers, HttpError | E, Exclude<Exclude<R, Context>, Fetch>>

Added in v1.4.0

delete

Signature

export declare const delete: (url: string | URL | HttpRequest, init?: RequestInit | undefined) => Effect<Response, StatusError | HttpError, Fetch>

Added in v1.3.0

get

Signature

export declare const get: (
  url: string | URL | HttpRequest,
  init?: RequestInit | undefined
) => Effect<Response, StatusError | HttpError, Fetch>

Added in v1.3.0

Signature

export declare const head: (
  url: string | URL | HttpRequest,
  init?: RequestInit | undefined
) => Effect<Response, StatusError | HttpError, Fetch>

Added in v1.3.0

layer

Signature

export declare const layer: Layer<Client, never, Fetch>

Added in v1.3.0

make

Signature

export declare const make: Effect<Handlers, never, Fetch>

Added in v1.3.0

options

Signature

export declare const options: (
  url: string | URL | HttpRequest,
  init?: RequestInit | undefined
) => Effect<Response, StatusError | HttpError, Fetch>

Added in v1.3.0

patch

Signature

export declare const patch: (
  url: string | URL | HttpRequest,
  init?: RequestInit | undefined
) => Effect<Response, StatusError | HttpError, Fetch>

Added in v1.3.0

post

Signature

export declare const post: (
  url: string | URL | HttpRequest,
  init?: RequestInit | undefined
) => Effect<Response, StatusError | HttpError, Fetch>

Added in v1.3.0

put

Signature

export declare const put: (
  url: string | URL | HttpRequest,
  init?: RequestInit | undefined
) => Effect<Response, StatusError | HttpError, Fetch>

Added in v1.3.0

model

Handlers (interface)

Signature

export interface Handlers {
  put: Handler
  get: Handler
  head: Handler
  post: Handler
  patch: Handler
  delete: Handler
  options: Handler
}

Added in v1.3.0

tag

Client (class)

Signature

export declare class Client

Added in v1.3.0