blob: 3a25fa2fe365eafd1529c6c7477e7ad388409ae8 (
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
|
/*
* Copyright (C) NGINX, Inc.
*/
'use strict';
const server = require('unit-http/http_server');
const { Server } = server;
function createServer (requestHandler) {
return new Server(requestHandler);
}
module.exports = {
Server,
STATUS_CODES: server.STATUS_CODES,
createServer,
IncomingMessage: server.ServerRequest,
ServerResponse: server.ServerResponse
};
|