From efb3fae035c7773a233d2bb3ecc455a956c80eff Mon Sep 17 00:00:00 2001
From: Tom van der Lee <tom@vanderlee.io>
Date: Mon, 7 Feb 2022 22:05:04 +0100
Subject: Updated ui

---
 src/hooks/useRequests.tsx | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

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

diff --git a/src/hooks/useRequests.tsx b/src/hooks/useRequests.tsx
index cb85162..204877a 100644
--- a/src/hooks/useRequests.tsx
+++ b/src/hooks/useRequests.tsx
@@ -1,15 +1,12 @@
 import {useCallback, useEffect, useMemo, useState} from "react";
 import {getHost} from "../utils";
 
-type Dict = {
-  [key: string]: string
-}
+export type Headers = [string, string][]
 
 export interface RequestPayload {
   id: string
   body: string
-  cookies: Dict
-  headers: Dict
+  headers: Headers
   method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH'
   path: string
 }
@@ -23,8 +20,7 @@ export interface ResponsePayload {
   id: string
   timing: number
   body: string
-  cookies: Dict
-  headers: Dict
+  headers: Headers
   status: number
 }
 
-- 
cgit v1.2.3

