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

Function hasBody

packages/effect/src/http/HttpMethod.ts:71–73  ·  view source on GitHub ↗
(method: string)

Source from the content-addressed store, hash-verified

69export function hasBody(method: HttpMethod): method is HttpMethod.WithBody
70export function hasBody(method: string): boolean
71export function hasBody(method: string): boolean {
72 return method !== "GET" && method !== "HEAD" && method !== "OPTIONS" && method !== "TRACE"
73}
74
75/**
76 * Provides a readonly set containing every supported `HttpMethod` literal.

Callers 8

getPayloadEncodingFunction · 0.90
getPayloadFunction · 0.90
transformPayloadFunction · 0.90
toClientBodyFunction · 0.90
toWebResultFunction · 0.90
fromWebBodyFunction · 0.90
toWebResultFunction · 0.90
decompressionFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected