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

Function isMultipart

packages/effect/src/http/HttpServerRequest.ts:298–300  ·  view source on GitHub ↗
(request: HttpServerRequest)

Source from the content-addressed store, hash-verified

296}
297
298const isMultipart = (request: HttpServerRequest) =>
299 request.headers["content-type"]?.toLowerCase().includes("multipart/form-data") === true ||
300 getFormDataBody(request) !== undefined
301
302/**
303 * Decodes the current request body as form data.

Callers 2

schemaBodyFormFunction · 0.85
schemaBodyFormJsonFunction · 0.85

Calls 1

getFormDataBodyFunction · 0.85

Tested by

no test coverage detected