ketting
Version:
Opiniated HATEAOS / Rest client.
8 lines (7 loc) • 340 B
TypeScript
import { Links } from '../link';
/**
* Takes a Content-Type header, and only returns the mime-type part.
*/
export declare function parseContentType(contentType: string | null): string | null;
export declare function parseLink(context: string, header: string | null): Links;
export declare function isSafeMethod(method: string): boolean;