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

Function formData

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

Source from the content-addressed store, hash-verified

423 * @since 4.0.0
424 */
425export const formData = (
426 body: FormData,
427 options?: Options.WithContent | undefined
428): HttpServerResponse =>
429 makeResponse({
430 status: options?.status ?? 200,
431 statusText: options?.statusText,
432 headers: options?.headers && Headers.fromInput(options.headers),
433 cookies: options?.cookies,
434 body: Body.formData(body)
435 })
436
437/**
438 * 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