From 078b5c1a3ab2326e057abc284cb3553fc91a6358 Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Fri, 20 Nov 2020 18:43:00 +0300 Subject: [PATCH] feat(endpoint): add head method Closes #17 --- src/endpoint.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/endpoint.ts b/src/endpoint.ts index 4f874e9..3c9469f 100644 --- a/src/endpoint.ts +++ b/src/endpoint.ts @@ -1,5 +1,6 @@ export enum Method { + HEAD = 'HEAD', GET = 'GET', PUT = 'PUT', POST = 'POST', @@ -11,4 +12,4 @@ export type Endpoint

= Readonly<{ method: Method; url: string | ((params: P) => string); headers?: Record; -}> \ No newline at end of file +}>