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

Function hasBody

packages/effect/src/unstable/http/HttpMethod.ts:57–58  ·  view source on GitHub ↗
(method: HttpMethod)

Source from the content-addressed store, hash-verified

55 * @since 4.0.0
56 */
57export const hasBody = (method: HttpMethod): method is HttpMethod.WithBody =>
58 method !== "GET" && method !== "HEAD" && method !== "OPTIONS" && method !== "TRACE"
59
60/**
61 * Provides a readonly set containing every supported `HttpMethod` literal.

Callers 5

getPayloadEncodingFunction · 0.90
toClientBodyFunction · 0.90
toWebResultFunction · 0.90
fromWebBodyFunction · 0.90
toWebResultFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected