UNPKG

mnubo-sdk

Version:
26 lines (25 loc) 550 B
export declare enum RequestMethods { GET = 0, POST = 1, PUT = 2, DELETE = 3, OPTIONS = 4, HEAD = 5, PATCH = 6 } export interface RequestOptions { protocol?: string; hostname?: string; port?: number; method?: string; path?: string; headers?: Map<string, string>; } export declare class Request { method: RequestMethods; options: RequestOptions; body?: any; constructor(method: RequestMethods, options: RequestOptions, body?: any); hasPayload(): boolean; payload(): string; }