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

Function formData

packages/effect/src/http/HttpServerResponse.ts:450–460  ·  view source on GitHub ↗
(
  body: FormData,
  options?: Options.WithContent | undefined
)

Source from the content-addressed store, hash-verified

448 * @since 4.0.0
449 */
450export const formData = (
451 body: FormData,
452 options?: Options.WithContent | undefined
453): HttpServerResponse =>
454 makeResponse({
455 status: options?.status ?? 200,
456 statusText: options?.statusText,
457 headers: options?.headers && Headers.fromInput(options.headers),
458 cookies: options?.cookies,
459 body: Body.formData(body)
460 })
461
462/**
463 * Creates a streaming response from a stream of byte chunks.

Callers

nothing calls this directly

Calls 2

makeResponseFunction · 0.70
formDataMethod · 0.45

Tested by

no test coverage detected