@@ -31,7 +31,7 @@ function Server(opts, requestListener) {
31
31
this . addListener ( 'request' , requestListener ) ;
32
32
}
33
33
34
- this . addListener ( 'tlsClientError' , function ( err , conn ) {
34
+ this . addListener ( 'tlsClientError' , function addListener ( err , conn ) {
35
35
if ( ! this . emit ( 'clientError' , err , conn ) )
36
36
conn . destroy ( err ) ;
37
37
} ) ;
@@ -43,7 +43,7 @@ exports.Server = Server;
43
43
44
44
Server . prototype . setTimeout = http . Server . prototype . setTimeout ;
45
45
46
- exports . createServer = function ( opts , requestListener ) {
46
+ exports . createServer = function createServer ( opts , requestListener ) {
47
47
return new Server ( opts , requestListener ) ;
48
48
} ;
49
49
@@ -112,7 +112,7 @@ function Agent(options) {
112
112
inherits ( Agent , http . Agent ) ;
113
113
Agent . prototype . createConnection = createConnection ;
114
114
115
- Agent . prototype . getName = function ( options ) {
115
+ Agent . prototype . getName = function getName ( options ) {
116
116
var name = http . Agent . prototype . getName . call ( this , options ) ;
117
117
118
118
name += ':' ;
@@ -186,7 +186,7 @@ const globalAgent = new Agent();
186
186
exports . globalAgent = globalAgent ;
187
187
exports . Agent = Agent ;
188
188
189
- exports . request = function ( options , cb ) {
189
+ exports . request = function request ( options , cb ) {
190
190
if ( typeof options === 'string' ) {
191
191
options = url . parse ( options ) ;
192
192
if ( ! options . hostname ) {
@@ -199,7 +199,7 @@ exports.request = function(options, cb) {
199
199
return http . request ( options , cb ) ;
200
200
} ;
201
201
202
- exports . get = function ( options , cb ) {
202
+ exports . get = function get ( options , cb ) {
203
203
var req = exports . request ( options , cb ) ;
204
204
req . end ( ) ;
205
205
return req ;
0 commit comments