This class now uses 'got' There's a migration guide here: https://github.com/sindresorhus/got/blob/master/documentation/migration-guides.md

As a SOCKS-Proxy, use 'socks-proxy-agent' https://github.com/TooTallNate/node-socks-proxy-agent Note: typescript will complain, bot you can @ts-ignore it

igpapi.http.defaults.agent = {
https: new SocksProxyAgent({
host,
port
}),
}

As a HTTP(S) proxy, use 'tunnel'
https://github.com/koichik/node-tunnel
https://github.com/sindresorhus/got#proxies

Hierarchy (view full)

Constructors

Properties

client: Got = ...
debug: Debugger = ...
setMasq: ((url: null | string) => void)

just replace with setMasqUrl() instead

statusCheckerStrategy: BodyStatusCheckerStrategy = ...

Methods

  • Parameters

    • OptionalproxyUrl: string

    Returns undefined | SocksProxyAgent | HttpsProxyAgent

  • Parameters

    • response: Response<any>

    Returns void

  • Parameters

    • policy: IPolicy<IDefaultPolicyContext, never>

    Returns void

  • Parameters

    • mode: null | string

    Returns void

  • Parameters

    • url: null | string

    Returns void

  • Parameters

    • payload: AndroidHttpSignPayload

    Returns {
        signed_body: string;
    }

    • signed_body: string
  • Returns string

  • Parameters

    • options: Options

    Returns Request

  • Parameters

    • size: number

    Returns string