UNPKG
httpao
Version:
latest (0.1.4)
0.1.4
0.1.3
0.1.2
0.1.1
Simple, lighweight http server module
github.com/m0ren/httpao
m0ren/httpao
httpao
/
hello.js
12 lines
(9 loc)
•
224 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
var
s =
Date
.
now
();
const
HTTPAO
=
require
(
'.'
), app =
HTTPAO
({
tls
:
true
}); app.
on
(
'request'
,
(
req, res
) =>
{ res.
end
(
'a'
); }); app.
listen
(
8080
,
() =>
{
console
.
log
(
'OK'
)});
var
e =
Date
.
now
();
console
.
log
(e - s);