diff --git a/src/Container/HttpMethod.php b/src/Container/HttpMethod.php new file mode 100644 index 0000000..628f5d4 --- /dev/null +++ b/src/Container/HttpMethod.php @@ -0,0 +1,28 @@ + self::GET, + 'POST' => self::POST, + 'PUT' => self::PUT, + 'DELETE' => self::DELETE, + 'HEAD' => self::HEAD, + 'OPTIONS' => self::OPTIONS, + default => throw new \InvalidArgumentException("Invalid HTTP method: $method"), + }; + } +}