Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/hono/client/types.ts>ClientResponse

Web Framework built on Web Standards
Extremely Popular
Go to Latest
interface ClientResponse
implements [globalThis.Response]
import { type ClientResponse } from "https://deno.land/x/hono@v4.3.2/client/types.ts";

Type Parameters

T
optional
U extends number = StatusCode
optional
F extends ResponseFormat = ResponseFormat

Properties

readonly
body: ReadableStream | null
readonly
bodyUsed: boolean
ok: U extends SuccessStatusCode ? true : U extends Exclude<StatusCode, SuccessStatusCode> ? false : boolean
status: U
statusText: string
headers: Headers
url: string

Methods

redirect(url: string, status: number): Response
clone(): Response
json(): F extends "text" ? Promise<never> : F extends "json" ? Promise<BlankRecordToNever<T>> : Promise<unknown>
text(): F extends "text" ? (T extends string ? Promise<T> : Promise<never>) : Promise<string>
blob(): Promise<Blob>
formData(): Promise<FormData>
arrayBuffer(): Promise<ArrayBuffer>