From d483a24804ba609fcfd67027c3d1a66e4173be5e Mon Sep 17 00:00:00 2001
From: Tom van der Lee <tom@vanderlee.io>
Date: Sat, 12 Feb 2022 15:15:02 +0100
Subject: Added all http methods to filter

---
 src/hooks/useRequests.tsx | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

(limited to 'src/hooks/useRequests.tsx')

diff --git a/src/hooks/useRequests.tsx b/src/hooks/useRequests.tsx
index 108232f..526e0a6 100644
--- a/src/hooks/useRequests.tsx
+++ b/src/hooks/useRequests.tsx
@@ -2,7 +2,16 @@ import { useCallback, useEffect, useMemo, useState } from "react";
 import { getHost } from "../utils";
 
 export type Headers = [string, string][];
-export type Method = "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
+export type Method =
+  | "GET"
+  | "HEAD"
+  | "POST"
+  | "PUT"
+  | "DELETE"
+  | "CONNECT"
+  | "OPTIONS"
+  | "TRACE"
+  | "PATCH";
 
 export interface RequestPayload {
   id: string;
-- 
cgit v1.2.3

