3.6 KiB
3.6 KiB
bandcamp-fetch / LimiterStreamAPI
Class: LimiterStreamAPI
Hierarchy
-
↳
LimiterStreamAPI
Table of contents
Constructors
Accessors
Methods
Constructors
constructor
• new LimiterStreamAPI(params
)
Parameters
Name | Type |
---|---|
params |
BaseAPIParams & { limiter : Limiter } |
Overrides
Defined in
Accessors
cache
• Protected
get
cache(): Cache
Returns
Inherited from
StreamAPI.cache
Defined in
Methods
fetch
▸ Protected
fetch(url
, jsonResponse
, method
, payload?
): Promise
<Response
>
Parameters
Name | Type |
---|---|
url |
string |
jsonResponse |
false |
method |
HEAD |
payload? |
undefined |
Returns
Promise
<Response
>
Inherited from
Defined in
▸ Protected
fetch(url
, jsonResponse
, method?
, payload?
): Promise
<any
>
Parameters
Name | Type |
---|---|
url |
string |
jsonResponse |
true |
method? |
FetchMethod |
payload? |
Record <string , any > |
Returns
Promise
<any
>
Inherited from
Defined in
▸ Protected
fetch(url
, jsonResponse?
, method?
, payload?
): Promise
<string
>
Parameters
Name | Type |
---|---|
url |
string |
jsonResponse? |
boolean |
method? |
FetchMethod |
payload? |
Record <string , any > |
Returns
Promise
<string
>
Inherited from
Defined in
refresh
▸ refresh(url
): Promise
<null
| string
>
Parameters
Name | Type |
---|---|
url |
string |
Returns
Promise
<null
| string
>
Overrides
Defined in
test
▸ test(url
): Promise
<StreamTestResult
>
Parameters
Name | Type |
---|---|
url |
string |
Returns
Promise
<StreamTestResult
>