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






                            




                             




                                        
                            

                  
            
           
                 

                                   
  

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

'use strict';

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

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

const http = require("http")

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