GitHub
Preparing search index...
The search index is not available
casper-js-sdk
casper-js-sdk
HttpHandler
Class HttpHandler
Hierarchy
HttpHandler
Implements
IHandler
Index
Constructors
constructor
Properties
client
custom
Headers
endpoint
http
Client?
referrer?
Methods
process
Axios
Request
process
Call
process
Fetch
Request
set
Custom
Headers
set
Referrer
Constructors
constructor
new
Http
Handler
(
endpoint
:
string
, client
?:
"axios"
|
"fetch"
)
:
HttpHandler
Parameters
endpoint:
string
client:
"axios"
|
"fetch"
= 'axios'
Returns
HttpHandler
Properties
Private
client
client
:
"axios"
|
"fetch"
Private
custom
Headers
custom
Headers
:
Record
<
string
,
string
>
= {}
Private
endpoint
endpoint
:
string
Private
Optional
http
Client
http
Client
?:
AxiosInstance
Private
Optional
referrer
referrer
?:
string
Methods
Private
process
Axios
Request
process
Axios
Request
(
body
:
string
)
:
Promise
<
RpcResponse
>
Parameters
body:
string
Returns
Promise
<
RpcResponse
>
process
Call
process
Call
(
params
:
RpcRequest
)
:
Promise
<
RpcResponse
>
Throws
Parameters
params:
RpcRequest
Returns
Promise
<
RpcResponse
>
Private
process
Fetch
Request
process
Fetch
Request
(
body
:
string
)
:
Promise
<
RpcResponse
>
Parameters
body:
string
Returns
Promise
<
RpcResponse
>
set
Custom
Headers
set
Custom
Headers
(
headers
:
Record
<
string
,
string
>
)
:
void
Parameters
headers:
Record
<
string
,
string
>
Returns
void
set
Referrer
set
Referrer
(
url
:
string
)
:
void
Parameters
url:
string
Returns
void
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
casper-
js-
sdk
Http
Handler
constructor
client
custom
Headers
endpoint
http
Client?
referrer?
process
Axios
Request
process
Call
process
Fetch
Request
set
Custom
Headers
set
Referrer
Generated using
TypeDoc
Throws