Function
getPayloadEncoding
(ast: SchemaAST.AST, method: HttpMethod)
Source from the content-addressed store, hash-verified
| 1548 | * @internal |
| 1549 | */ |
| 1550 | export 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
Tested by
no test coverage detected