2.5 KiB
2.5 KiB
bandcamp-fetch / Fetcher
Class: Fetcher
Table of contents
Constructors
Accessors
Methods
Constructors
constructor
• new Fetcher(params
)
Parameters
Name | Type |
---|---|
params |
FetcherParams |
Defined in
Accessors
cookie
• get
cookie(): undefined
| null
| string
Returns
undefined
| null
| string
Defined in
Methods
fetch
▸ fetch(url
, jsonResponse
, method
, payload?
): Promise
<Response
>
Parameters
Name | Type |
---|---|
url |
string |
jsonResponse |
false |
method |
HEAD |
payload? |
undefined |
Returns
Promise
<Response
>
Defined in
▸ fetch(url
, jsonResponse
, method?
, payload?
): Promise
<any
>
Parameters
Name | Type |
---|---|
url |
string |
jsonResponse |
true |
method? |
FetchMethod |
payload? |
Record <string , any > |
Returns
Promise
<any
>
Defined in
▸ fetch(url
, jsonResponse?
, method?
, payload?
): Promise
<string
>
Parameters
Name | Type |
---|---|
url |
string |
jsonResponse? |
boolean |
method? |
FetchMethod |
payload? |
Record <string , any > |
Returns
Promise
<string
>
Defined in
setCookie
▸ setCookie(value?
): void
Parameters
Name | Type |
---|---|
value? |
null | string |
Returns
void