Skip to content

Latest commit

 

History

History
137 lines (69 loc) · 2.69 KB

File metadata and controls

137 lines (69 loc) · 2.69 KB

bandcamp-fetchDocs


bandcamp-fetch / Fetcher

Class: Fetcher

Constructors

new Fetcher()

new Fetcher(params): Fetcher

Parameters

params: FetcherParams

Returns

Fetcher

Defined in

lib/utils/Fetcher.ts:21

Accessors

cookie

Get Signature

get cookie(): undefined | null | string

Returns

undefined | null | string

Defined in

lib/utils/Fetcher.ts:34

Methods

fetch()

fetch(url, jsonResponse, method, payload)

fetch(url, jsonResponse, method, payload?): Promise<object>

Parameters

url: string

jsonResponse: false

method: HEAD

payload?: undefined

Returns

Promise<object>

ok

ok: boolean

status

status: number

Defined in

lib/utils/Fetcher.ts:38

fetch(url, jsonResponse, method, payload)

fetch(url, jsonResponse, method?, payload?): Promise<any>

Parameters

url: string

jsonResponse: true

method?: FetchMethod

payload?: Record<string, any>

Returns

Promise<any>

Defined in

lib/utils/Fetcher.ts:39

fetch(url, jsonResponse, method, payload)

fetch(url, jsonResponse?, method?, payload?): Promise<string>

Parameters

url: string

jsonResponse?: boolean

method?: FetchMethod

payload?: Record<string, any>

Returns

Promise<string>

Defined in

lib/utils/Fetcher.ts:40


setCookie()

setCookie(value?): void

Parameters

value?: null | string

Returns

void

Defined in

lib/utils/Fetcher.ts:26