MCPcopy Create free account
hub / github.com/ethanniser/the-beth-stack / html

Function html

packages/beth-stack/src/elysia/index.ts:13–17  ·  view source on GitHub ↗
(
    lazyHtml: T,
  )

Source from the content-addressed store, hash-verified

11 // setGlobalPersistCacheConfig(options);
12
13 async function html<T extends () => JSX.Element>(
14 lazyHtml: T,
15 ): Promise<Response> {
16 return renderToStringResponse(lazyHtml);
17 }
18
19 function htmlStream<T extends () => JSX.Element>(lazyHtml: T): Response {
20 return renderToStreamResponse(lazyHtml);

Callers

nothing calls this directly

Calls 1

renderToStringResponseFunction · 0.90

Tested by

no test coverage detected