feat(endpoint): add head method

Closes #17
This commit is contained in:
Dmitriy Pleshevskiy 2020-11-20 18:43:00 +03:00
parent 4795bb3cbc
commit 078b5c1a3a

View file

@ -1,5 +1,6 @@
export enum Method { export enum Method {
HEAD = 'HEAD',
GET = 'GET', GET = 'GET',
PUT = 'PUT', PUT = 'PUT',
POST = 'POST', POST = 'POST',
@ -11,4 +12,4 @@ export type Endpoint<P = void> = Readonly<{
method: Method; method: Method;
url: string | ((params: P) => string); url: string | ((params: P) => string);
headers?: Record<string, string>; headers?: Record<string, string>;
}> }>