@nodeswork/applet
Version:
Nodeswork Applet Framework
16 lines (15 loc) • 457 B
TypeScript
import { AppletInfoService } from './applet.info.service';
export declare class RequestService {
private appletInfo;
private defaultRequest;
constructor(appletInfo: AppletInfoService);
request(options: RequestOptions): Promise<any>;
get(options: RequestOptions): Promise<any>;
post(options: RequestOptions): Promise<any>;
}
export interface RequestOptions {
uri: string;
method?: string;
headers?: any;
body?: any;
}