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

Function raw

packages/effect/src/unstable/http/HttpBody.ts:207–213  ·  view source on GitHub ↗
(
  body: unknown,
  options?: {
    readonly contentType?: string | undefined
    readonly contentLength?: number | undefined
  } | undefined
)

Source from the content-addressed store, hash-verified

205 * @since 4.0.0
206 */
207export const raw = (
208 body: unknown,
209 options?: {
210 readonly contentType?: string | undefined
211 readonly contentLength?: number | undefined
212 } | undefined
213): Raw => new Raw(body, options?.contentType, options?.contentLength)
214
215/**
216 * HTTP body variant backed by a `Uint8Array`.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected