diff options
author | maasencioh <maasencioh@gmail.com> | 2016-10-13 13:01:28 +0200 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2016-10-18 15:38:43 -0700 |
commit | accf410eb0992628b4aab3c139242a409874a4fb (patch) | |
tree | 45475c4839c149547e1574f3ff5d1ff970c34288 /lib | |
parent | 02c3c205f1a00b8dca0caca7f093969251f1fee5 (diff) | |
download | android-node-v8-accf410eb0992628b4aab3c139242a409874a4fb.tar.gz android-node-v8-accf410eb0992628b4aab3c139242a409874a4fb.tar.bz2 android-node-v8-accf410eb0992628b4aab3c139242a409874a4fb.zip |
http: name anonymous functions in http
Refs: https://github.com/nodejs/node/issues/8913
PR-URL: https://github.com/nodejs/node/pull/9055
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/http.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/http.js b/lib/http.js index 7e5b4bf9aa..6931a0e26c 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; |