youtubei.js / HTTPClient
Class: HTTPClient
Constructors
new HTTPClient()
new HTTPClient(
session
,cookie
?,fetch
?):HTTPClient
Parameters
• session: Session
• cookie?: string
• fetch?
Returns
Defined in
Accessors
fetch_function
get
fetch_function(): (input
,init
?) =>Promise
<Response
>
Returns
Function
Parameters
• input: URL
| RequestInfo
• init?: RequestInit
Returns
Promise
<Response
>
Defined in
Methods
fetch()
fetch(
input
,init
?):Promise
<Response
>
Parameters
• input: string
| URL
| Request
• init?: RequestInit
& HTTPClientInit
Returns
Promise
<Response
>