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

x/deno_koa/test/test_deps.ts>StringWriter

A middleware framework for Deno's http serve🦕. Transplanted from Koa with ❤️
Latest
class StringWriter
implements Writer, WriterSync
import { StringWriter } from "https://deno.land/x/deno_koa@v1.0.4/test/test_deps.ts";

Writer utility for buffering string chunks

Constructors

new
StringWriter(base?: string)

Properties

private
byteLength: number
private
cache: string | undefined
private
chunks: Uint8Array[]

Methods

toString(): string
write(p: Uint8Array): Promise<number>
writeSync(p: Uint8Array): number