xref: /unit/src/nodejs/unit-http/http.js (revision 2642:d92e92c69c5d)
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 (options, requestHandler) {
15    return new Server(options, requestHandler);
16}
17
18const http = require("http")
19
20module.exports = {
21    ...http,
22    Server,
23    createServer,
24    IncomingMessage: ServerRequest,
25    ServerResponse,
26};
27