UNPKG

python-proxy-scraper-client

Version:

A TypeScript client for interacting with a Python proxy scraper service

17 lines (16 loc) 550 B
export interface RequestOptions { headers?: Record<string, string>; proxy_options?: any; } export interface BaseClientConfig { baseUrl: string; } export declare class BaseClient { protected readonly baseUrl: string; constructor(config: BaseClientConfig); private handleResponse; private makeRequest; protected get<T>(endpoint: string, options?: RequestOptions): Promise<T>; protected post<T>(endpoint: string, body: any, options?: RequestOptions): Promise<T>; protected getFullUrl(endpoint: string): string; }