From 179150091fa2dd50cfccd516f1bd62207ef715db Mon Sep 17 00:00:00 2001 From: maasencioh Date: Thu, 13 Oct 2016 13:01:28 +0200 Subject: [PATCH] http: name anonymous functions in http MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs: https://github.com/nodejs/node/issues/8913 PR-URL: https://github.com/nodejs/node/pull/9055 Reviewed-By: James M Snell Reviewed-By: Luigi Pinca Reviewed-By: Franziska Hinkelmann Reviewed-By: Michaƫl Zasso --- lib/http.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/http.js b/lib/http.js index 7e5b4bf9aa6137..6931a0e26c138a 100644 --- a/lib/http.js +++ b/lib/http.js @@ -15,18 +15,18 @@ exports.STATUS_CODES = server.STATUS_CODES; exports._connectionListener = server._connectionListener; const Server = exports.Server = server.Server; -exports.createServer = function(requestListener) { +exports.createServer = function createServer(requestListener) { return new Server(requestListener); }; const client = require('_http_client'); const ClientRequest = exports.ClientRequest = client.ClientRequest; -exports.request = function(options, cb) { +exports.request = function request(options, cb) { return new ClientRequest(options, cb); }; -exports.get = function(options, cb) { +exports.get = function get(options, cb) { var req = exports.request(options, cb); req.end(); return req;