UNPKG

@nodeswork/applet

Version:
16 lines (15 loc) 457 B
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; }