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

Function asMultipart

packages/effect/src/unstable/httpapi/HttpApiSchema.ts:764–774  ·  view source on GitHub ↗
(options?: Multipart_.withLimits.Options)

Source from the content-addressed store, hash-verified

762 * @since 4.0.0
763 */
764export function asMultipart(options?: Multipart_.withLimits.Options) {
765 return <S extends Schema.Top>(self: S): asMultipart<S> =>
766 self.pipe(Schema.brand(MultipartTypeId)).annotate({
767 "~httpApiEncoding": {
768 _tag: "Multipart",
769 mode: "buffered",
770 contentType: defaultContentType("Multipart"),
771 limits: options
772 }
773 })
774}
775
776/**
777 * Runtime brand key used to mark schemas as streaming multipart payloads.

Callers

nothing calls this directly

Calls 3

defaultContentTypeFunction · 0.85
annotateMethod · 0.65
pipeMethod · 0.65

Tested by

no test coverage detected