summaryrefslogblamecommitdiffhomepage
path: root/src/nodejs/unit-http/http.js
blob: 60b8004f75c933a2286251fd2507bb86466bc96f (plain) (tree)
1
2
3
4
5
6
7






                            




                             
 

                                                 

 
                            

                  
            
           
                 

                                   
  

/*
 * Copyright (C) NGINX, Inc.
 */

'use strict';

const {
    Server,
    ServerRequest,
    ServerResponse,
} = require('./http_server');

function createServer (options, requestHandler) {
    return new Server(options, requestHandler);
}

const http = require("http")

module.exports = {
    ...http,
    Server,
    createServer,
    IncomingMessage: ServerRequest,
    ServerResponse,
};