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

Function getPayloadEncoding

packages/effect/src/http-api/HttpApiSchema.ts:1550–1554  ·  view source on GitHub ↗
(ast: SchemaAST.AST, method: HttpMethod)

Source from the content-addressed store, hash-verified

1548 * @internal
1549 */
1550export function getPayloadEncoding(ast: SchemaAST.AST, method: HttpMethod): PayloadEncoding {
1551 const encoding = resolveHttpApiEncoding(ast)
1552 if (encoding) return encoding
1553 return hasBody(method) ? defaultJsonEncoding : defaultUrlEncodedEncoding
1554}
1555
1556/**
1557 * @internal

Callers

nothing calls this directly

Calls 1

hasBodyFunction · 0.90

Tested by

no test coverage detected