Constructors
constructor
- new Http(node: BaseNode, input: string, base?: string): Http
Parameters
input: string
Optional base: string
Properties
base
base: undefined | string
Methods
decode
- decode(track: string): Promise<TrackInfo>
- decode(tracks: string[]): Promise<Track[]>
- decode(tracks: string | string[]): Promise<TrackInfo | Track[]>
Parameters
Parameters
Returns Promise<Track[]>
Parameters
tracks: string | string[]
do
- do<T>(method: string, url: URL, data?: Buffer): Promise<T>
Type parameters
Parameters
method: string
url: URL
Optional data: Buffer
Returns Promise<T>
Decodes a track.