Sets the base URL for the Ipregistry API.
The base URL to use for API requests.
The IpregistryConfigBuilder instance for chaining.
Sets how many batch sub-requests are dispatched concurrently when a batch is large enough to be split into chunks. A value <= 0 is ignored. Set it to 1 for strictly sequential dispatch, which is gentler on a rate-limited API key.
How many batch sub-requests run concurrently.
The IpregistryConfigBuilder instance for chaining.
Sets the maximum number of values sent in a single batch request. Batch
lookups split larger inputs into this many values per request. Values
are capped at DEFAULT_MAX_BATCH_SIZE (the API limit); a value <= 0 is
ignored.
The maximum number of values per batch request.
The IpregistryConfigBuilder instance for chaining.
Sets the maximum number of automatic retries performed in addition to the initial attempt. Use 0 to disable retries.
The maximum number of retries.
The IpregistryConfigBuilder instance for chaining.
Sets the base backoff between retries. Successive retries use an exponentially increasing delay (retryInterval * 2^attempt). When a response carries a Retry-After header, that value takes precedence.
The base backoff in milliseconds.
The IpregistryConfigBuilder instance for chaining.
Controls whether 5xx responses (and transient network errors) are retried. Defaults to true.
Whether 5xx responses are retried.
The IpregistryConfigBuilder instance for chaining.
Controls whether 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.
Whether 429 responses are retried.
The IpregistryConfigBuilder instance for chaining.
Provides a builder pattern for constructing
IpregistryConfiginstances. This class allows for setting theapiKey,baseUrl, andtimeoutbefore building the finalIpregistryConfigobject.Deprecated
Pass an
IpregistryClientOptionsobject to theIpregistryClientconstructor instead, e.g.new IpregistryClient({ apiKey: 'KEY', timeout: 10000 }).