bandcamp-fetch • Docs
bandcamp-fetch / LimiterStreamAPI
new LimiterStreamAPI(
params
):LimiterStreamAPI
• params: BaseAPIParams
& object
get
protected
cache():Cache
protected
fetch(url
,jsonResponse
,method
,payload
?):Promise
<object
>
• url: string
• jsonResponse: false
• method: HEAD
• payload?: undefined
Promise
<object
>
ok:
boolean
status:
number
protected
fetch(url
,jsonResponse
,method
?,payload
?):Promise
<any
>
• url: string
• jsonResponse: true
• method?: FetchMethod
• payload?: Record
<string
, any
>
Promise
<any
>
protected
fetch(url
,jsonResponse
?,method
?,payload
?):Promise
<string
>
• url: string
• jsonResponse?: boolean
• method?: FetchMethod
• payload?: Record
<string
, any
>
Promise
<string
>
refresh(
url
):Promise
<null
|string
>
• url: string
Promise
<null
| string
>
test(
url
):Promise
<StreamTestResult
>
• url: string
Promise
<StreamTestResult
>