UNPKG
bogart-server
Version:
latest (0.1.4)
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
JSGI Server for Node.JS
github.com/nrstott/bogart-server
nrstott/bogart-server
bogart-server
/
examples
/
hello.js
10 lines
(8 loc)
•
187 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
var
bogartServer =
require
(
'../index'
);
bogartServer
(
function
(
req
) {
return
{
status
:
200
,
headers
: {
'content-type'
:
'text/html'
},
body
: [
'Hello'
] } }).
listen
(
8085
);