diff options
| author | 2022-02-12 15:15:02 +0100 | |
|---|---|---|
| committer | 2022-02-12 15:15:02 +0100 | |
| commit | d483a24804ba609fcfd67027c3d1a66e4173be5e (patch) | |
| tree | b3d5b5b58bd6c236f02c6e54cf38a4a9f417e938 /src/hooks/useRequests.tsx | |
| parent | bf1ce7317688650b49a9a71ae04b18f9960bc6ec (diff) | |
| download | client-d483a24804ba609fcfd67027c3d1a66e4173be5e.tar.gz client-d483a24804ba609fcfd67027c3d1a66e4173be5e.tar.bz2 client-d483a24804ba609fcfd67027c3d1a66e4173be5e.zip | |
Added all http methods to filter
Diffstat (limited to 'src/hooks/useRequests.tsx')
| -rw-r--r-- | src/hooks/useRequests.tsx | 11 |
1 files changed, 10 insertions, 1 deletions
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"; | |||
| 2 | import { getHost } from "../utils"; | 2 | import { getHost } from "../utils"; |
| 3 | 3 | ||
| 4 | export type Headers = [string, string][]; | 4 | export type Headers = [string, string][]; |
| 5 | export type Method = "GET" | "POST" | "PUT" | "DELETE" | "PATCH"; | 5 | export type Method = |
| 6 | | "GET" | ||
| 7 | | "HEAD" | ||
| 8 | | "POST" | ||
| 9 | | "PUT" | ||
| 10 | | "DELETE" | ||
| 11 | | "CONNECT" | ||
| 12 | | "OPTIONS" | ||
| 13 | | "TRACE" | ||
| 14 | | "PATCH"; | ||
| 6 | 15 | ||
| 7 | export interface RequestPayload { | 16 | export interface RequestPayload { |
| 8 | id: string; | 17 | id: string; |
