Skip to content

renderToReadableStream

reference
1 min readUpdated

Kind: Function

Source: src/jsx/streaming.ts

Part of: Jsx

Signature

ts
function renderToReadableStream(content: HtmlEscapedString | JSXNode | Promise<HtmlEscapedString>, onError: (e: unknown) => string | void): ReadableStream<Uint8Array>

Parameters

NameType
content`HtmlEscapedString
onError`(e: unknown) => string

Returns: ReadableStream<Uint8Array>

Used by

2 references from 2 files. Each is a place in this repository where the symbol is actually used — go read one rather than trusting an example.

Imported by (2)

  • RenderToStringOptionssrc/jsx/dom/server.ts:11
  • RequestContextsrc/middleware/jsx-renderer/index.ts:14

Was this page helpful?

Download as PDF
renderToReadableStream — Hono (narrator proof)