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

Function asJson

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

Source from the content-addressed store, hash-verified

851 * @since 4.0.0
852 */
853export function asJson(options?: {
854 readonly contentType?: string
855}) {
856 return <S extends Schema.Top>(self: S) => asNonMultipartEncoding(self, { _tag: "Json", ...options })
857}
858
859/**
860 * Marks a schema as an `application/x-www-form-urlencoded` payload or response.

Callers

nothing calls this directly

Calls 1

asNonMultipartEncodingFunction · 0.85

Tested by

no test coverage detected