createServer method

HttpServer createServer([
  1. HttpRequestListener requestListener
])

Returns a new instance of HttpServer.

The requestListener is a function which is automatically added to the "request" event.

Implementation

external HttpServer createServer([HttpRequestListener requestListener]);