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

Function asMultipartStream

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

Source from the content-addressed store, hash-verified

806 * @since 4.0.0
807 */
808export function asMultipartStream(options?: Multipart_.withLimits.Options) {
809 return <S extends Schema.Top>(self: S): asMultipartStream<S> =>
810 self.pipe(Schema.brand(MultipartStreamTypeId)).annotate({
811 "~httpApiEncoding": {
812 _tag: "Multipart",
813 mode: "stream",
814 contentType: defaultContentType("Multipart"),
815 limits: options
816 }
817 })
818}
819
820function asNonMultipartEncoding<S extends Schema.Top>(self: S, options: {
821 readonly _tag: "Json" | "FormUrlEncoded" | "Uint8Array" | "Text"

Callers

nothing calls this directly

Calls 3

defaultContentTypeFunction · 0.85
annotateMethod · 0.65
pipeMethod · 0.65

Tested by

no test coverage detected