ketting
Version:
Opinionated HATEOAS / Rest client.
10 lines (9 loc) • 379 B
TypeScript
import { BaseHeadState } from './base-state.js';
import Client from '../client.js';
/**
* Turns the response to a HTTP Head request into a HeadState object.
*
* HeadState is a bit different from normal State objects, because it's
* missing a bunch of information.
*/
export declare const factory: (client: Client, uri: string, response: Response) => Promise<BaseHeadState>;