MCPcopy
hub / github.com/Effect-TS/effect / raw

Function raw

packages/platform/src/internal/httpServerResponse.ts:289–299  ·  view source on GitHub ↗
(body: unknown, options?: ServerResponse.Options | undefined)

Source from the content-addressed store, hash-verified

287
288/** @internal */
289export const raw = (body: unknown, options?: ServerResponse.Options | undefined): ServerResponse.HttpServerResponse =>
290 new ServerResponseImpl(
291 options?.status ?? 200,
292 options?.statusText,
293 options?.headers ? Headers.fromInput(options.headers) : Headers.empty,
294 options?.cookies ?? Cookies.empty,
295 internalBody.raw(body, {
296 contentType: options?.contentType,
297 contentLength: options?.contentLength
298 })
299 )
300
301/** @internal */
302export const formData = (

Callers

nothing calls this directly

Calls 1

rawMethod · 0.80

Tested by

no test coverage detected