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

Function asText

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

Source from the content-addressed store, hash-verified

885 * @since 4.0.0
886 */
887export function asText(options?: {
888 readonly contentType?: string
889}) {
890 return <S extends Schema.Top & { readonly Encoded: string }>(self: S) =>
891 asNonMultipartEncoding(self, { _tag: "Text", ...options })
892}
893
894/**
895 * Marks a schema as a binary payload / response.

Callers

nothing calls this directly

Calls 1

asNonMultipartEncodingFunction · 0.85

Tested by

no test coverage detected