MCPcopy Create free account
hub / github.com/Effect-TS/effect / text

Function text

packages/platform/src/internal/httpBody.ts:113–114  ·  view source on GitHub ↗
(body: string, contentType?: string)

Source from the content-addressed store, hash-verified

111
112/** @internal */
113export const text = (body: string, contentType?: string): Body.Uint8Array =>
114 uint8Array(encoder.encode(body), contentType ?? "text/plain")
115
116/** @internal */
117export const unsafeJson = (body: unknown, contentType?: string): Body.Uint8Array =>

Callers 2

unsafeJsonFunction · 0.70
urlParamsFunction · 0.70

Calls 2

encodeMethod · 0.80
uint8ArrayFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…