import { Agent as HttpAgent , AgentOptions , ClientRequest , ClientRequestArgs } from 'http' ; see https see https see https export class WrappedAgent < T extends HttpAgent > implements HttpAgent { agent : T ; constructor ( agent ) { this . agent = agent ; } addRequest ( request , options ) { this . agent . addRequest ( request , options ) ; } get keepAlive ( ) : boolean { return this . agent . keepAlive ; } get maxSockets ( ) : HttpAgent [ 'maxSockets' ] { return this . agent . maxSockets ; } get options ( ) : AgentOptions { return this . agent . options ; } get defaultPort ( ) : number { return this . agent . defaultPort ; } get protocol ( ) : string { return this . agent . protocol ; } destroy ( ) { this . agent . destroy ( ) ; } get maxFreeSockets ( ) : HttpAgent [ 'maxFreeSockets' ] { return this . agent . maxFreeSockets ; } get maxTotalSockets ( ) : HttpAgent [ 'maxTotalSockets' ] { return this . agent . maxTotalSockets ; } get freeSockets ( ) : HttpAgent [ 'freeSockets' ] { return this . agent . freeSockets ; } get sockets ( ) : HttpAgent [ 'sockets' ] { return this . agent . sockets ; } get requests ( ) : HttpAgent [ 'requests' ] { return this . agent . requests ; } }