Preparing search index...
The search index is not available
@ipregistry/client
@ipregistry/client
DefaultRequestHandler
Class DefaultRequestHandler
Implements
IpregistryRequestHandler
Index
Constructors
constructor
Methods
batch
Lookup
Asns
batch
Lookup
Ips
build
Api
Response
build
Api
Url
get
Headers
handle
Error
lookup
Asn
lookup
Ip
origin
Lookup
Asn
origin
Lookup
Ip
parse
User
Agents
parse
Int
Constructors
constructor
new
DefaultRequestHandler
(
config
:
IpregistryConfig
)
:
DefaultRequestHandler
Parameters
config
:
IpregistryConfig
Returns
DefaultRequestHandler
Methods
batch
Lookup
Asns
batchLookupAsns
(
asns
:
number
[]
,
options
:
IpregistryOption
[]
,
)
:
Promise
<
ApiResponse
<
BatchResult
<
AutonomousSystem
|
LookupError
>
>
>
Parameters
asns
:
number
[]
options
:
IpregistryOption
[]
Returns
Promise
<
ApiResponse
<
BatchResult
<
AutonomousSystem
|
LookupError
>
>
>
batch
Lookup
Ips
batchLookupIps
(
ips
:
string
[]
,
options
:
IpregistryOption
[]
,
)
:
Promise
<
ApiResponse
<
BatchResult
<
IpInfo
|
LookupError
>
>
>
Parameters
ips
:
string
[]
options
:
IpregistryOption
[]
Returns
Promise
<
ApiResponse
<
BatchResult
<
IpInfo
|
LookupError
>
>
>
Protected
build
Api
Response
buildApiResponse
(
response
:
Response
)
:
Promise
<
ApiResponse
<
any
>
>
Parameters
response
:
Response
Returns
Promise
<
ApiResponse
<
any
>
>
Protected
build
Api
Url
buildApiUrl
(
path
:
string
,
options
?:
IpregistryOption
[]
)
:
string
Parameters
path
:
string
Optional
options
:
IpregistryOption
[]
Returns
string
Protected
get
Headers
getHeaders
()
:
Record
<
string
,
string
>
Returns
Record
<
string
,
string
>
Protected
handle
Error
handleError
(
error
:
any
)
:
Promise
<
ClientError
>
Parameters
error
:
any
Returns
Promise
<
ClientError
>
lookup
Asn
lookupAsn
(
asn
:
number
,
options
:
IpregistryOption
[]
,
)
:
Promise
<
ApiResponse
<
AutonomousSystem
>
>
Parameters
asn
:
number
options
:
IpregistryOption
[]
Returns
Promise
<
ApiResponse
<
AutonomousSystem
>
>
lookup
Ip
lookupIp
(
ip
:
string
,
options
:
IpregistryOption
[]
)
:
Promise
<
ApiResponse
<
IpInfo
>
>
Parameters
ip
:
string
options
:
IpregistryOption
[]
Returns
Promise
<
ApiResponse
<
IpInfo
>
>
origin
Lookup
Asn
originLookupAsn
(
options
:
IpregistryOption
[]
,
)
:
Promise
<
ApiResponse
<
RequesterAutonomousSystem
>
>
Parameters
options
:
IpregistryOption
[]
Returns
Promise
<
ApiResponse
<
RequesterAutonomousSystem
>
>
origin
Lookup
Ip
originLookupIp
(
options
:
IpregistryOption
[]
,
)
:
Promise
<
ApiResponse
<
RequesterIpInfo
>
>
Parameters
options
:
IpregistryOption
[]
Returns
Promise
<
ApiResponse
<
RequesterIpInfo
>
>
parse
User
Agents
parseUserAgents
(
userAgents
:
string
[]
,
)
:
Promise
<
ApiResponse
<
BatchResult
<
UserAgent
>
>
>
Parameters
userAgents
:
string
[]
Returns
Promise
<
ApiResponse
<
BatchResult
<
UserAgent
>
>
>
Protected
Static
parse
Int
parseInt
(
value
:
null
|
string
)
:
null
|
number
Parameters
value
:
null
|
string
Returns
null
|
number
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
batch
Lookup
Asns
batch
Lookup
Ips
build
Api
Response
build
Api
Url
get
Headers
handle
Error
lookup
Asn
lookup
Ip
origin
Lookup
Asn
origin
Lookup
Ip
parse
User
Agents
parse
Int
@ipregistry/client
Loading...