Skip to content

Commit

Permalink
http: name anonymous functions in http
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
maasencioh authored and jasnell committed Oct 19, 2016
1 parent 73a8d3b commit 1791500
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1791500

Please sign in to comment.