MCPcopy Index your code
hub / github.com/Effect-TS/effect / html

Function html

packages/platform/src/internal/httpServerResponse.ts:160–172  ·  view source on GitHub ↗
(
  strings: TemplateStringsArray | string,
  ...args: ReadonlyArray<Template.Interpolated>
)

Source from the content-addressed store, hash-verified

158 >
159 (html: string): ServerResponse.HttpServerResponse
160} = (
161 strings: TemplateStringsArray | string,
162 ...args: ReadonlyArray<Template.Interpolated>
163) => {
164 if (typeof strings === "string") {
165 return text(strings, { contentType: "text/html" })
166 }
167
168 return Effect.map(
169 Template.make(strings, ...args),
170 (_) => text(_, { contentType: "text/html" })
171 ) as any
172}
173
174/** @internal */
175export const htmlStream = <A extends ReadonlyArray<Template.InterpolatedWithStream>>(

Callers

nothing calls this directly

Calls 3

textFunction · 0.70
mapMethod · 0.65
makeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…