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

Response overview

Added in v1.0.0


Table of contents


combinators

arrayBuffer

Signature

export declare const arrayBuffer: (value: Response) => Effect<ArrayBuffer, DecodeError, never>

Added in v1.0.0

blob

Signature

export declare const blob: (value: Response) => Effect<Blob, DecodeError, never>

Added in v1.0.0

formData

Signature

export declare const formData: (value: Response) => Effect<FormData, DecodeError, never>

Added in v1.0.0

json

Signature

export declare const json: (value: Response) => Effect<any, DecodeError, never>

Added in v1.0.0

text

Signature

export declare const text: (value: Response) => Effect<string, DecodeError, never>

Added in v1.0.0

error

StatusError

Signature

export declare const StatusError: typeof internal.StatusError

Added in v1.1.0

StatusErrorT

Signature

export declare const StatusErrorT: any

Added in v1.1.0

filtering

filterStatus

Signature

export declare const filterStatus: ((
  fn: Predicate<number>
) => (response: Response) => Effect<Response, StatusError, never>) &
  ((response: Response, fn: Predicate<number>) => Effect<Response, StatusError, never>)

Added in v1.0.0

filterStatusOk

Signature

export declare const filterStatusOk: (response: Response) => Effect<Response, StatusError, never>

Added in v1.0.0

filterStatusOkT

Signature

export declare const filterStatusOkT: (
  response: Response
) => Effect<ResponseT<OkStatusCode>, StatusErrorT<NotOkStatusCode>, never>

Added in v1.0.0

status code

NotOkStatusCode

Signature

export declare const NotOkStatusCode: any

Added in v1.1.0

OkStatusCode

Signature

export declare const OkStatusCode: any

Added in v1.1.0

StatusCode

Signature

export declare const StatusCode: any

Added in v1.1.0