xref: /unit/src/nodejs/unit-http/http.js (revision 1865:3c551b9721df)
1
2/*
3 * Copyright (C) NGINX, Inc.
4 */
5
6'use strict';
7
8const {
9    Server,
10    ServerRequest,
11    ServerResponse,
12} = require('./http_server');
13
14function createServer (requestHandler) {
15    return new Server(requestHandler);
16}
17
18const http = require("http")
19
20module.exports = {
21    ...http,
22    Server,
23    createServer,
24    IncomingMessage: ServerRequest,
25    ServerResponse,
26};
27