removed http client for a simple fetch wrapper with logging in utils

This commit is contained in:
Boki 2025-06-22 09:03:34 -04:00
parent 89cbfb7848
commit a07a71d92a
36 changed files with 100 additions and 1465 deletions

View file

@ -5,16 +5,22 @@
export interface ProxyInfo {
host: string;
port: number;
protocol: 'http' | 'https' | 'socks4' | 'socks5';
protocol: 'http' | 'https'; // Simplified to only support HTTP/HTTPS
username?: string;
password?: string;
isWorking?: boolean;
successRate?: number;
lastChecked?: string;
lastUsed?: string;
lastChecked?: Date;
lastUsed?: Date;
responseTime?: number;
source?: string;
country?: string;
error?: string;
// Tracking properties
working?: number; // Number of successful checks
total?: number; // Total number of checks
averageResponseTime?: number; // Average response time in milliseconds
firstSeen?: Date; // When the proxy was first added
}
export interface ProxyManagerConfig {