Skip to content

stream

reference
1 min readUpdated

Kind: Function

Source: src/helper/streaming/stream.ts

Part of: Helper

Signature

ts
function stream(c: Context, cb: (stream: StreamingApi) => Promise<void>, onError: (e: Error, stream: StreamingApi) => Promise<void>): Response

Parameters

NameType
cContext
cb(stream: StreamingApi) => Promise<void>
onError(e: Error, stream: StreamingApi) => Promise<void>

Returns: Response

Relationships

  • IMPORTS → StreamingApi
  • IMPORTS → isOldBunVersion

Was this page helpful?

Download as PDF
stream — Hono (narrator proof)