Preparing search index...
The search index is not available
@6653302wy/ts-utils
@6653302wy/ts-utils
HttpMgr
Class HttpMgr
Implements
INet
Index
Constructors
constructor
Properties
auth
Err
Code
auth
Key
config
err
Code
in
Auth
Err
req
Inst
success
Code
Accessors
inst
Methods
api
Need
Auth
on
Reponse
Interceptor
on
Request
Interceptor
on
Server
Err
polling
Token
request
set
Auth
In
Headers
set
Config
Constructors
constructor
new
Http
Mgr
(
)
:
HttpMgr
Returns
HttpMgr
Properties
Private
auth
Err
Code
auth
Err
Code
:
string
|
number
= 0
Private
auth
Key
auth
Key
:
string
= ''
Private
config
config
:
HttpConf
= ...
Private
err
Code
err
Code
:
string
|
number
= 0
Private
in
Auth
Err
in
Auth
Err
:
boolean
= false
Private
req
Inst
req
Inst
:
AxiosInstance
Private
success
Code
success
Code
:
string
|
number
= 0
Accessors
Static
inst
get
inst
(
)
:
HttpMgr
Returns
HttpMgr
Methods
Private
api
Need
Auth
api
Need
Auth
(
api
)
:
boolean
Parameters
api
:
string
Returns
boolean
Private
on
Reponse
Interceptor
on
Reponse
Interceptor
(
res
)
:
any
Parameters
res
:
AxiosResponse
<
any
,
any
>
Returns
any
Private
on
Request
Interceptor
on
Request
Interceptor
(
cf
)
:
InternalAxiosRequestConfig
<
unknown
>
Parameters
cf
:
InternalAxiosRequestConfig
<
unknown
>
Returns
InternalAxiosRequestConfig
<
unknown
>
on
Server
Err
on
Server
Err
(
code
,
msg
)
:
void
Parameters
code
:
string
|
number
msg
:
string
Returns
void
Private
polling
Token
polling
Token
(
url
,
pollingTime
?
)
:
void
Parameters
url
:
string
Optional
pollingTime
:
number
Returns
void
request
request
<
T
,
D
>
(
api
,
d
?
)
:
Promise
<
D
>
请求 api 请求地址 d 请求参数
Type Parameters
T
D
=
any
Parameters
api
:
string
Optional
d
:
RequestData
<
T
>
Returns
Promise
<
D
>
Private
set
Auth
In
Headers
set
Auth
In
Headers
(
headers
,
needAuth
,
authKey
)
:
AxiosRequestHeaders
Parameters
headers
:
AxiosRequestHeaders
needAuth
:
boolean
authKey
:
string
Returns
AxiosRequestHeaders
set
Config
set
Config
(
conf
)
:
void
axios 请求初始化配置
Parameters
conf
:
HttpConf
Returns
void
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
auth
Err
Code
auth
Key
config
err
Code
in
Auth
Err
req
Inst
success
Code
inst
api
Need
Auth
on
Reponse
Interceptor
on
Request
Interceptor
on
Server
Err
polling
Token
request
set
Auth
In
Headers
set
Config
@6653302wy/ts-utils
SizeRatioType
HttpMgr
LocalStorage
NetManager
PcmPlayer
Queue
SocketMgr
URL
CbHandler
ParsedURLParamType
URLParamType
ArrayUtils
Browser
DateUtils
Device
LocalCache
MathUtils
ObjectUtils
Singleton
StringUtils
Verify
Loading...
Generated using
TypeDoc
请求 api 请求地址 d 请求参数