@querc/squidex-client
Version:
NodeJS client for the [Squidex](https://squidex.io/) CMS
24 lines (23 loc) • 581 B
TypeScript
export declare class HttpSendParams {
/** HTTP method */
method: string;
/** Will be appended to SquidexClientConfiguration.url */
path: string;
/** Data to send */
data?: any;
/** HTTP content type */
contentType?: string;
/** Bearer token to send with request */
token?: string;
/** Include drafts */
draft?: boolean;
}
/**
* Base class for HTTP clients
*/
export declare abstract class HttpClient {
/**
* Sends a HTTP request
*/
abstract send<TReq = any, TRes = TReq>(params: HttpSendParams): Promise<TRes>;
}