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

Function isMultipart

packages/effect/src/unstable/http/HttpServerRequest.ts:253–255  ·  view source on GitHub ↗
(request: HttpServerRequest)

Source from the content-addressed store, hash-verified

251}
252
253const isMultipart = (request: HttpServerRequest) =>
254 request.headers["content-type"]?.toLowerCase().includes("multipart/form-data") === true ||
255 getFormDataBody(request) !== undefined
256
257/**
258 * 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