knowmax-quest-utils
Version:
Utilities for creating a Knowmax Quest client.
13 lines • 473 B
TypeScript
export declare const headers: (initial?: Record<string, string>) => Headers;
declare class Headers {
private headers;
constructor(initial?: Record<string, string>);
withBearer(token: string): this;
withLanguage(language?: string): this;
withContentTypeJson(): this;
withContentType(contentType: string): this;
withHeader(key: string, value?: string): this;
export(): Record<string, string>;
}
export {};
//# sourceMappingURL=headers.d.ts.map