Skip to content
This repository has been archived by the owner on Mar 28, 2019. It is now read-only.

Latest commit

 

History

History
46 lines (37 loc) · 1.66 KB

webserver.md

File metadata and controls

46 lines (37 loc) · 1.66 KB

webserver Module

Method/Property Type Status
listen(port, callback) Listener ✅ Implemented
listen(addr, callback) Listener ✅ Implemented
listen(port, opts, callback) Listener ✅ Implemented
port int ✅ Implemented

Listener

Method Type Status
close() ✅ Implemented

callback function

Parameter
Request
Response

Request

Property Type Status
method string ✅ Implemented
url string ✅ Implemented
httpVersion string ✅ Implemented
headers object ✅ Implemented
post string ✅ Implemented
postRaw string ✅ Implemented

Response

Method/Property Type Status
headers object ✅ Implemented
statusCode int ✅ Implemented
setHeader(name, value) ✅ Implemented
header(name) string ✅ Implemented
setEncoding(encoding) ✅ Implemented
write(data) ✅ Implemented
writeHead(statusCode, headers) ✅ Implemented
close() ✅ Implemented
closeGracefully() ✅ Implemented