File indexing completed on 2024-05-19 04:42:04

0001 /*
0002     SPDX-FileCopyrightText: 2014 Denis Steckelmacher <steckdenis@yahoo.fr>
0003 
0004     SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0005 */
0006 
0007 var tls = require("tls");
0008 
0009 var http = require("http");
0010 
0011 exports.createServer = function (requestListener) { return new Server(); };
0012 exports.createServer(function(){});
0013 
0014 /*
0015  * exports.Server
0016  */
0017 function Server() { return ; }
0018 exports.Server = Server;
0019 exports.Server.prototype = tls.Server;
0020 
0021 exports.Server.prototype.listen = function (port, hostname, backlog, callback) { return ; };
0022 exports.Server.prototype.listen(1, "", 1, function(){});
0023 
0024 exports.Server.prototype.close = function (callback) { return ; };
0025 exports.Server.prototype.close(function(){});
0026 
0027 
0028 exports.request = function (options, callback) { return new http.ClientRequest(); };
0029 exports.request(new Object(), function(){});
0030 
0031 exports.get = function (options, callback) { return new http.ClientRequest(); };
0032 exports.get(new Object(), function(){});
0033 
0034 /*
0035  * exports.Agent
0036  */
0037 function Agent() { return ; }
0038 exports.Agent = Agent;
0039 exports.Agent.prototype = http.Agent;
0040 
0041 
0042 exports.globalAgent = new Agent();
0043