Permalink
Browse files

http: name anonymous functions in http

Refs: #8913
PR-URL: #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>
  • Loading branch information...
maasencioh authored and jasnell committed Oct 13, 2016
1 parent 73a8d3b commit 179150091fa2dd50cfccd516f1bd62207ef715db
Showing with 3 additions and 3 deletions.
  1. +3 −3 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;

0 comments on commit 1791500

Please sign in to comment.