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

Function StreamUint8Array

packages/effect/src/unstable/httpapi/HttpApiSchema.ts:392–400  ·  view source on GitHub ↗
(options?: {
  readonly contentType?: string | undefined
})

Source from the content-addressed store, hash-verified

390 * @since 4.0.0
391 */
392export const StreamUint8Array = (options?: {
393 readonly contentType?: string | undefined
394}): StreamUint8Array =>
395 Schema.make<StreamUint8Array>(streamSchema.ast, {
396 [StreamSchemaTypeId]: StreamSchemaTypeId,
397 _tag: "StreamUint8Array",
398 mode: "uint8array",
399 contentType: options?.contentType ?? defaultStreamContentType("uint8array")
400 })
401
402/** @internal */
403export const isStreamSchema = (u: unknown): u is StreamSchema =>

Callers

nothing calls this directly

Calls 2

defaultStreamContentTypeFunction · 0.85
makeMethod · 0.65

Tested by

no test coverage detected