Genese complexity report

<- http.d.ts
Methods : 111
Complexity index : 70.1
Cyclomatic complexity : 104
Cognitive complexity
100 % Correct 111/111
0 % Warning 0/111 (threshold : 10)
0 % Error 0/111 (threshold : 20)
Cyclomatic complexity
100 % Correct 111/111
0 % Warning 0/111 (threshold : 5)
0 % Error 0/111 (threshold : 10)
Methods of http.d.ts
Complexity Index 0.2 Cyclomatic complexity 0
                            
                                
                
                    constructor(requestListener?: RequestListener); // ------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
Complexity Index 0.4 Cyclomatic complexity 0
                            
                                
                    
                    constructor(options: ServerOptions, requestListener?: RequestListener); // ------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
Complexity Index 0 Cyclomatic complexity 0
                            
                                
                    
            
                    constructor();
            
                            
                        
setTimeout Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
                    
            
                    setTimeout(msecs: number, callback?: () => void): this; // ------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
setHeader Complexity Index 0.9 Cyclomatic complexity 1
                            
                                
                    
                    setHeader(name: string, value: number | string | ReadonlyArray<string>): void; // ------- +0.9 Complexity index (+0.9 atomic)
            
                            
                        
getHeader Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    getHeader(name: string): number | string | string[] | undefined; // --------------------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
getHeaders Complexity Index 0.2 Cyclomatic complexity 1
                            
                                
                    
                    getHeaders(): OutgoingHttpHeaders; // ------------------------------------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
getHeaderNames Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
                    
                    getHeaderNames(): string[]; // -------------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
hasHeader Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
                    
                    hasHeader(name: string): boolean; // ------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
removeHeader Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
                    
                    removeHeader(name: string): void; // ------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
addTrailers Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                    
                    addTrailers(headers: OutgoingHttpHeaders | ReadonlyArray<[string, string]>): void; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
flushHeaders Complexity Index 0.2 Cyclomatic complexity 1
                            
                                
                    
                    flushHeaders(): void; // -------------------------------------------------------------------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
Complexity Index 0.2 Cyclomatic complexity 0
                            
                                
                    
            
                    constructor(req: IncomingMessage); // ------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
assignSocket Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
                    
            
                    assignSocket(socket: Socket): void; // ------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
detachSocket Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
                    
                    detachSocket(socket: Socket): void; // ------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
writeContinue Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
                    
                    // https://github.com/nodejs/node/blob/master/test/parallel/test-http-write-callbacks.js#L53
                    // no args in writeContinue callback
                    writeContinue(callback?: () => void): void; // -------------------------------------------------------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
writeHead Complexity Index 0.9 Cyclomatic complexity 1
                            
                                
                    
                    writeHead(statusCode: number, reasonPhrase?: string, headers?: OutgoingHttpHeaders | OutgoingHttpHeader[]): this; // ------- +0.9 Complexity index (+0.9 atomic)
            
                            
                        
writeHead Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    writeHead(statusCode: number, headers?: OutgoingHttpHeaders | OutgoingHttpHeader[]): this; // ------------------------------ +0.7 Complexity index (+0.7 atomic)
            
                            
                        
writeProcessing Complexity Index 0.2 Cyclomatic complexity 1
                            
                                
                    
                    writeProcessing(): void; // ------------------------------------------------------------------------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
Complexity Index 0.9 Cyclomatic complexity 0
                            
                                
                    
            
                    constructor(url: string | URL | ClientRequestArgs, cb?: (res: IncomingMessage) => void); // ------- +0.9 Complexity index (+0.9 atomic)
            
                            
                        
abort Complexity Index 0.2 Cyclomatic complexity 1
                            
                                
                    
                    abort(): void; // ------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
onSocket Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
                    
                    onSocket(socket: Socket): void; // ------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
setTimeout Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
                    
                    setTimeout(timeout: number, callback?: () => void): this; // ------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
setNoDelay Complexity Index 0.3 Cyclomatic complexity 1
                            
                                
                    
                    setNoDelay(noDelay?: boolean): void; // ---------------------------- +0.3 Complexity index (+0.3 atomic)
            
                            
                        
setSocketKeepAlive Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
                    
                    setSocketKeepAlive(enable?: boolean, initialDelay?: number): void; // ------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
addListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
            
                    addListener(event: 'abort', listener: () => void): this; // ----------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
addListener Complexity Index 1.1 Cyclomatic complexity 1
                            
                                
                    
                    addListener(event: 'connect', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this; // ------- +1.1 Complexity index (+1.1 atomic)
            
                            
                        
addListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    addListener(event: 'continue', listener: () => void): this; // ------------------------------------------------------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
addListener Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    addListener(event: 'information', listener: (info: InformationEvent) => void): this; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
addListener Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    addListener(event: 'response', listener: (response: IncomingMessage) => void): this; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
addListener Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    addListener(event: 'socket', listener: (socket: Socket) => void): this; // -------------------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
addListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    addListener(event: 'timeout', listener: () => void): this; // -------------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
addListener Complexity Index 1.1 Cyclomatic complexity 1
                            
                                
                    
                    addListener(event: 'upgrade', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this; // ------- +1.1 Complexity index (+1.1 atomic)
            
                            
                        
addListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    addListener(event: 'close', listener: () => void): this; // ---------------------------------------------------------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
addListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    addListener(event: 'drain', listener: () => void): this; // ------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
addListener Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    addListener(event: 'error', listener: (err: Error) => void): this; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
addListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    addListener(event: 'finish', listener: () => void): this; // ---------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
addListener Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                    
                    addListener(event: 'pipe', listener: (src: stream.Readable) => void): this; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
addListener Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                    
                    addListener(event: 'unpipe', listener: (src: stream.Readable) => void): this; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
addListener Complexity Index 0.9 Cyclomatic complexity 1
                            
                                
                    
                    addListener(event: string | symbol, listener: (...args: any[]) => void): this; // ------- +0.9 Complexity index (+0.9 atomic)
            
                            
                        
on Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
            
                    on(event: 'abort', listener: () => void): this; // -------------------------------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
on Complexity Index 1.1 Cyclomatic complexity 1
                            
                                
                    
                    on(event: 'connect', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this; // ------- +1.1 Complexity index (+1.1 atomic)
            
                            
                        
on Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    on(event: 'continue', listener: () => void): this; // ------------------------------------------------------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
on Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    on(event: 'information', listener: (info: InformationEvent) => void): this; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
on Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    on(event: 'response', listener: (response: IncomingMessage) => void): this; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
on Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    on(event: 'socket', listener: (socket: Socket) => void): this; // -------------------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
on Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    on(event: 'timeout', listener: () => void): this; // -------------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
on Complexity Index 1.1 Cyclomatic complexity 1
                            
                                
                    
                    on(event: 'upgrade', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this; // ------- +1.1 Complexity index (+1.1 atomic)
            
                            
                        
on Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    on(event: 'close', listener: () => void): this; // ---------------------------------------------------------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
on Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    on(event: 'drain', listener: () => void): this; // ------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
on Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    on(event: 'error', listener: (err: Error) => void): this; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
on Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    on(event: 'finish', listener: () => void): this; // ---------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
on Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                    
                    on(event: 'pipe', listener: (src: stream.Readable) => void): this; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
on Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                    
                    on(event: 'unpipe', listener: (src: stream.Readable) => void): this; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
on Complexity Index 0.9 Cyclomatic complexity 1
                            
                                
                    
                    on(event: string | symbol, listener: (...args: any[]) => void): this; // ------- +0.9 Complexity index (+0.9 atomic)
            
                            
                        
once Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
            
                    once(event: 'abort', listener: () => void): this; // --------------------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
once Complexity Index 1.1 Cyclomatic complexity 1
                            
                                
                    
                    once(event: 'connect', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this; // ------- +1.1 Complexity index (+1.1 atomic)
            
                            
                        
once Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    once(event: 'continue', listener: () => void): this; // ------------------------------------------------------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
once Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    once(event: 'information', listener: (info: InformationEvent) => void): this; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
once Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    once(event: 'response', listener: (response: IncomingMessage) => void): this; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
once Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    once(event: 'socket', listener: (socket: Socket) => void): this; // -------------------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
once Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    once(event: 'timeout', listener: () => void): this; // -------------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
once Complexity Index 1.1 Cyclomatic complexity 1
                            
                                
                    
                    once(event: 'upgrade', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this; // ------- +1.1 Complexity index (+1.1 atomic)
            
                            
                        
once Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    once(event: 'close', listener: () => void): this; // ---------------------------------------------------------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
once Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    once(event: 'drain', listener: () => void): this; // ------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
once Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    once(event: 'error', listener: (err: Error) => void): this; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
once Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    once(event: 'finish', listener: () => void): this; // ---------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
once Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                    
                    once(event: 'pipe', listener: (src: stream.Readable) => void): this; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
once Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                    
                    once(event: 'unpipe', listener: (src: stream.Readable) => void): this; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
once Complexity Index 0.9 Cyclomatic complexity 1
                            
                                
                    
                    once(event: string | symbol, listener: (...args: any[]) => void): this; // ------- +0.9 Complexity index (+0.9 atomic)
            
                            
                        
prependListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
            
                    prependListener(event: 'abort', listener: () => void): this; // ------------------ +0.5 Complexity index (+0.5 atomic)
            
                            
                        
prependListener Complexity Index 1.1 Cyclomatic complexity 1
                            
                                
                    
                    prependListener(event: 'connect', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this; // ------- +1.1 Complexity index (+1.1 atomic)
            
                            
                        
prependListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    prependListener(event: 'continue', listener: () => void): this; // ------------------------------------------------------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
prependListener Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    prependListener(event: 'information', listener: (info: InformationEvent) => void): this; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
prependListener Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    prependListener(event: 'response', listener: (response: IncomingMessage) => void): this; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
prependListener Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    prependListener(event: 'socket', listener: (socket: Socket) => void): this; // -------------------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
prependListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    prependListener(event: 'timeout', listener: () => void): this; // -------------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
prependListener Complexity Index 1.1 Cyclomatic complexity 1
                            
                                
                    
                    prependListener(event: 'upgrade', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this; // ------- +1.1 Complexity index (+1.1 atomic)
            
                            
                        
prependListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    prependListener(event: 'close', listener: () => void): this; // ---------------------------------------------------------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
prependListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    prependListener(event: 'drain', listener: () => void): this; // ------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
prependListener Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    prependListener(event: 'error', listener: (err: Error) => void): this; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
prependListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    prependListener(event: 'finish', listener: () => void): this; // ---------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
prependListener Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                    
                    prependListener(event: 'pipe', listener: (src: stream.Readable) => void): this; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
prependListener Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                    
                    prependListener(event: 'unpipe', listener: (src: stream.Readable) => void): this; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
prependListener Complexity Index 0.9 Cyclomatic complexity 1
                            
                                
                    
                    prependListener(event: string | symbol, listener: (...args: any[]) => void): this; // ------- +0.9 Complexity index (+0.9 atomic)
            
                            
                        
prependOnceListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
            
                    prependOnceListener(event: 'abort', listener: () => void): this; // ------------------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
prependOnceListener Complexity Index 1.1 Cyclomatic complexity 1
                            
                                
                    
                    prependOnceListener(event: 'connect', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this; // ------- +1.1 Complexity index (+1.1 atomic)
            
                            
                        
prependOnceListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    prependOnceListener(event: 'continue', listener: () => void): this; // ------------------------------------------------------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
prependOnceListener Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    prependOnceListener(event: 'information', listener: (info: InformationEvent) => void): this; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
prependOnceListener Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    prependOnceListener(event: 'response', listener: (response: IncomingMessage) => void): this; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
prependOnceListener Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    prependOnceListener(event: 'socket', listener: (socket: Socket) => void): this; // -------------------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
prependOnceListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    prependOnceListener(event: 'timeout', listener: () => void): this; // -------------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
prependOnceListener Complexity Index 1.1 Cyclomatic complexity 1
                            
                                
                    
                    prependOnceListener(event: 'upgrade', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this; // ------- +1.1 Complexity index (+1.1 atomic)
            
                            
                        
prependOnceListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    prependOnceListener(event: 'close', listener: () => void): this; // ---------------------------------------------------------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
prependOnceListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    prependOnceListener(event: 'drain', listener: () => void): this; // ------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
prependOnceListener Complexity Index 0.7 Cyclomatic complexity 1
                            
                                
                    
                    prependOnceListener(event: 'error', listener: (err: Error) => void): this; // ------- +0.7 Complexity index (+0.7 atomic)
            
                            
                        
prependOnceListener Complexity Index 0.5 Cyclomatic complexity 1
                            
                                
                    
                    prependOnceListener(event: 'finish', listener: () => void): this; // ---------------- +0.5 Complexity index (+0.5 atomic)
            
                            
                        
prependOnceListener Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                    
                    prependOnceListener(event: 'pipe', listener: (src: stream.Readable) => void): this; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
prependOnceListener Complexity Index 0.8 Cyclomatic complexity 1
                            
                                
                    
                    prependOnceListener(event: 'unpipe', listener: (src: stream.Readable) => void): this; // ------- +0.8 Complexity index (+0.8 atomic)
            
                            
                        
prependOnceListener Complexity Index 0.9 Cyclomatic complexity 1
                            
                                
                    
                    prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; // ------- +0.9 Complexity index (+0.9 atomic)
            
                            
                        
Complexity Index 0.2 Cyclomatic complexity 0
                            
                                
                
                    constructor(socket: Socket); // ---------------------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
setTimeout Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
                    
                    setTimeout(msecs: number, callback?: () => void): this; // ------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
destroy Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
                    
                    destroy(error?: Error): void; // ------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
Complexity Index 0.2 Cyclomatic complexity 0
                            
                                
                    
            
                    constructor(opts?: AgentOptions); // -------------------------------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
destroy Complexity Index 0.2 Cyclomatic complexity 1
                            
                                
                    
            
                    /**
                     * Destroy any sockets that are currently in use by the agent.
                     * It is usually not necessary to do this. However, if you are using an agent with KeepAlive enabled,
                     * then it is best to explicitly shut down the agent when you know that it will no longer be used. Otherwise,
                     * sockets may hang open for quite a long time before the server terminates them.
                     */
                    destroy(): void; // ---------------------------------------------------------------------------------------------------- +0.2 Complexity index (+0.2 atomic)
            
                            
                        
createServer Complexity Index 0.4 Cyclomatic complexity 1
                            
                                
                
            
                function createServer(requestListener?: RequestListener): Server; // ------- +0.4 Complexity index (+0.4 atomic)
            
                            
                        
createServer Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
                
                function createServer(options: ServerOptions, requestListener?: RequestListener): Server; // ------- +0.6 Complexity index (+0.6 atomic)
            
                            
                        
request Complexity Index 1.1 Cyclomatic complexity 1
                            
                                
                
                function request(options: RequestOptions | string | URL, callback?: (res: IncomingMessage) => void): ClientRequest; // ------- +1.1 Complexity index (+1.1 atomic)
            
                            
                        
request Complexity Index 1.2 Cyclomatic complexity 1
                            
                                
                
                function request(url: string | URL, options: RequestOptions, callback?: (res: IncomingMessage) => void): ClientRequest; // ------- +1.2 Complexity index (+1.2 atomic)
            
                            
                        
get Complexity Index 1.1 Cyclomatic complexity 1
                            
                                
                
                function get(options: RequestOptions | string | URL, callback?: (res: IncomingMessage) => void): ClientRequest; // --------------- +1.1 Complexity index (+1.1 atomic)
            
                            
                        
get Complexity Index 1.2 Cyclomatic complexity 1
                            
                                
                
                function get(url: string | URL, options: RequestOptions, callback?: (res: IncomingMessage) => void): ClientRequest; // ------- +1.2 Complexity index (+1.2 atomic)