/**
 * @since 1.0.0
 */
export const hasBody = method => method !== "GET" && method !== "HEAD" && method !== "OPTIONS";
/**
 * @since 1.0.0
 */
export const all = /*#__PURE__*/new Set(["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"]);
/**
 * Tests if a value is a `HttpMethod`.
 *
 * @example
 * ```ts
 * import * as assert from "node:assert"
 * import { HttpMethod } from "@effect/platform"
 *
 * assert.deepStrictEqual(HttpMethod.isHttpMethod("GET"), true)
 * assert.deepStrictEqual(HttpMethod.isHttpMethod("get"), false)
 * assert.deepStrictEqual(HttpMethod.isHttpMethod(1), false)
 * ```
 *
 * @since 1.0.0
 * @category refinements
 */
export const isHttpMethod = u => all.has(u);
//# sourceMappingURL=HttpMethod.js.map