Skip to main content
Module

x/stream_response/index.ts>BufferedStreamResponse

Fetch API Response objects made from async generators.
Latest
class BufferedStreamResponse
extends Response
import { BufferedStreamResponse } from "https://deno.land/x/stream_response@v0.1.0-pre.4/index.ts";

If for any reason you don't want to use streaming response bodies, you can use this class instead, which will buffer the entire body before releasing it to the network. Note that headers will still be sent immediately.

Constructors

new
BufferedStreamResponse(body?: StreamBodyInit | null, init?: ResponseInit)