Constructs a new IpregistryConfig instance.
The API key for authenticating requests.
Optional. The base URL of the Ipregistry API.
Optional. The timeout for API requests in milliseconds.
OptionalmaxRetries: numberOptional. The maximum number of automatic retries.
OptionalretryInterval: numberOptional. The base backoff between retries in milliseconds.
OptionalretryOnServerError: booleanOptional. Whether 5xx responses are retried.
OptionalretryOnTooManyRequests: booleanOptional. Whether 429 responses are retried.
OptionalmaxBatchSize: numberOptional. The maximum number of values per batch request.
OptionalbatchConcurrency: numberOptional. How many batch sub-requests run concurrently.
ReadonlyapiThe API key used for authenticating requests to Ipregistry.
ReadonlybaseThe base URL of the Ipregistry API. Defaults to 'https://api.ipregistry.co'.
ReadonlybatchHow many batch sub-requests are dispatched concurrently when a batch is large enough to be split into chunks. Defaults to 4.
ReadonlymaxThe maximum number of values sent in a single batch request. Larger
batches are split into this many values per request. Capped at
DEFAULT_MAX_BATCH_SIZE (the API limit).
ReadonlymaxThe maximum number of automatic retries performed in addition to the
initial attempt. Applies to transport errors (timeouts, network
failures) and to the response statuses enabled by retryOnServerError
and retryOnTooManyRequests. Defaults to 3. Use 0 to disable retries.
ReadonlyretryThe base backoff (in milliseconds) between retries. Successive retries use an exponentially increasing delay (retryInterval * 2^attempt). When a response carries a Retry-After header, that value takes precedence. Defaults to 1000.
ReadonlyretryWhether 5xx responses (and transient network errors) are retried. Defaults to true.
ReadonlyretryWhether 429 Too Many Requests responses are retried, honoring the Retry-After header when present. Ipregistry does not rate limit by default (it is opt-in per API key), so this defaults to false.
ReadonlytimeoutThe timeout (in milliseconds) for API requests. Defaults to 5000.
Represents the configuration for the Ipregistry API client. This class holds the API key, base URL, and timeout setting used for API requests.