UNPKG

@streamyx/api

Version:

Build extensions for Streamyx with Node.js

24 lines (23 loc) 709 B
export type HttpClient = { headers: Record<string, string>; cookies: string[]; userAgents: Record< 'chromeWindows' | 'chromeMacOS' | 'chromeLinux' | 'smartTv' | 'tizen', string >; fetch( resource: string | URL | Request, options?: RequestInit, ): Promise<Response>; fetchAsChrome( resource: string | URL | Request, options?: RequestInit, ): Promise<Response>; appendCookies(setCookie: string | string[]): void; setAgent(proxy?: string | null): void; setCookies(cookies: string[]): void; setHeader(name: string, value: string): void; setHeaders(headers: Record<string, string>): void; removeHeader(name: string): void; destroySessions(): Promise<void>; };