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;