Skip to content

Commit accf410

Browse files
maasenciohjasnell
authored andcommitted
http: name anonymous functions in http
Refs: #8913 PR-URL: #9055 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Franziska Hinkelmann <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
1 parent 02c3c20 commit accf410

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/http.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@ exports.STATUS_CODES = server.STATUS_CODES;
1515
exports._connectionListener = server._connectionListener;
1616
const Server = exports.Server = server.Server;
1717

18-
exports.createServer = function(requestListener) {
18+
exports.createServer = function createServer(requestListener) {
1919
return new Server(requestListener);
2020
};
2121

2222
const client = require('_http_client');
2323
const ClientRequest = exports.ClientRequest = client.ClientRequest;
2424

25-
exports.request = function(options, cb) {
25+
exports.request = function request(options, cb) {
2626
return new ClientRequest(options, cb);
2727
};
2828

29-
exports.get = function(options, cb) {
29+
exports.get = function get(options, cb) {
3030
var req = exports.request(options, cb);
3131
req.end();
3232
return req;

0 commit comments

Comments
 (0)