ketting
Version:
Opiniated HATEAOS / Rest client.
13 lines (12 loc) • 350 B
TypeScript
import { BaseState } from './base-state';
/**
* Represents a resource state in the HAL format
*/
export declare class HtmlState extends BaseState<string> {
serializeBody(): string;
clone(): HtmlState;
}
/**
* Turns a HTTP response into a HtmlState
*/
export declare const factory: (uri: string, response: Response) => Promise<HtmlState>;