summaryrefslogtreecommitdiffhomepage
path: root/src/nodejs/unit-http/http.js
blob: d298a35fe03295a447c057705e9d2dd59cf9878d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

/*
 * 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,
};