@maxmind/geoip2-node
    Preparing search index...

    Interface WebServiceClientOptions

    Options for the WebServiceClient constructor

    interface WebServiceClientOptions {
        fetcher?: (
            input: string | URL | Request,
            init?: RequestInit,
        ) => Promise<Response>;
        host?: string;
        timeout?: number;
    }
    Index

    Properties

    fetcher?: (
        input: string | URL | Request,
        init?: RequestInit,
    ) => Promise<Response>

    A custom fetch implementation to use for requests. Defaults to the global fetch. This is primarily useful for testing or for routing requests through a custom dispatcher or proxy.

    host?: string

    The host to use when connecting to the web service. The default is "geoip.maxmind.com". To call the GeoLite web service instead of the GeoIP web service, set this to "geolite.info". To call the Sandbox GeoIP web service instead of the production GeoIP web service, set this to "sandbox.maxmind.com". The sandbox allows you to experiment with the API without affecting your production data.

    timeout?: number

    The timeout. The default is 3000