This Fetch API interface represents the response to a request.
FetchEvent.respondWith method | Bun module | Bun BuildDocsReferenceGuidesBlogDiscord/Bun/FetchEvent/respondWithMrespondWith BuildDocsReferenceGuidesBlogDiscord /Bun/FetchEvent/respondWithMrespondWith FetchEvent.respondWithrespondWith(response: Response | PromiseResponse>): void;Referenced typesclass Response readonly body: null | ReadableStreamUint8ArrayArrayBufferLike>> readonly bodyUsed: boolean readonly headers: Headers readonly ok: boolean readonly redirected: boolean readonly status: number readonly statusText: string readonly type: ResponseType readonly url: string arrayBuffer(): PromiseArrayBuffer>; blob(): PromiseBlob>; bytes(): PromiseUint8ArrayArrayBufferLike>>; clone(): Response; formData(): PromiseFormData>; json(): Promiseany>; text(): Promisestring>; static error(): Response; static json(data: any,init?: ResponseInit): Response; static redirect(url: string | URL,status?: number): Response;
Search the reference...
/
method
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlogToolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →FetchEvent.respondWith method | Bun module | Bun,AI智能索引,全网链接索引,智能导航,网页索引
- API documentation for method bun.FetchEvent.respondWith | Bun