UNPKG

huawei-wingle-4g

Version:

This is a module NodeJS allowing to drive Huawei Wingle 4G. This module can :

23 lines 764 B
import Response from './Response'; export default class Connection { private baseUrl; private connection; private cookieJar; private logger; private tokens; constructor(baseUrl: string); activeLog(activeLog: boolean): void; private createConnection; openHomePage(): Promise<Response>; get(url: string, maxRedirection?: number): Promise<Response>; post(url: string, parameters: string, maxRedirection?: number): Promise<Response>; private getCookies; private isRedirection; private storeCookies; private storeTokensFromHeaders; private storeTokensFromDocument; private peekToken; getToken(): string; static isSuccess(response: Response): boolean; } //# sourceMappingURL=Connection.d.ts.map