Response overview
Added in v0.0.1
Table of contents
decoder
arrayBuffer
Signature
export declare const arrayBuffer: (arg: Response) => Promise<Either<DecodeError, ArrayBuffer>>
Added in v0.0.1
blob
Signature
export declare const blob: (arg: Response) => Promise<Either<DecodeError, Blob>>
Added in v0.0.1
formData
Signature
export declare const formData: (arg: Response) => Promise<Either<DecodeError, FormData>>
Added in v0.0.1
json
Signature
export declare const json: (arg: Response) => Promise<Either<DecodeError, any>>
Added in v0.0.1
text
Signature
export declare const text: (arg: Response) => Promise<Either<DecodeError, string>>
Added in v0.0.1
filtering
filterStatus
Signature
export declare const filterStatus: ((
fn: (status: number) => boolean
) => (response: Response) => Either<StatusError, Response>) &
((response: Response, fn: (status: number) => boolean) => Either<StatusError, Response>)
Added in v0.0.1
filterStatusOk
Signature
export declare const filterStatusOk: <R extends Response | core.HttpResponse>(
response: R
) => Either<core.StatusError, R>
Added in v0.0.1
filterStatusOkT
Signature
export declare const filterStatusOkT: (response: Response) => Either<StatusErrorT<StatusNotOK>, ResponseT<StatusOK>>
Added in v0.0.1
model
HttpResponse
Signature
export declare const HttpResponse: typeof core.HttpResponse
Added in v0.0.1
HttpResponseEither
Signature
export declare const HttpResponseEither: typeof core.HttpResponseEither
Added in v0.1.0
StatusError
Signature
export declare const StatusError: typeof core.StatusError
Added in v0.0.1
StatusErrorT
Signature
export declare const StatusErrorT: any
Added in v0.0.1
status code
StatusCode
Signature
export declare const StatusCode: any
Added in v0.0.1
StatusNotOK
Signature
export declare const StatusNotOK: any
Added in v0.0.1
StatusOK
Signature
export declare const StatusOK: any
Added in v0.0.1