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 <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 18, 2016
1 parent 02c3c20 commit accf410
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/http.js
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 accf410

Please sign in to comment.