Class jls.net.http.HttpServer

A HTTP server.
Defined in: HttpServer.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Creates a HTTP server.
Method Summary
Method Attributes Method Name and Description
<static>  
jls.net.http.HttpServer.create(addr, backlog)
Creates a HTTP server for a specified socket address.
 
createContext(path, handler)
Creates a context at the given path.
<static>  
jls.net.http.HttpServer.fileHandler(httpExchange)
A basic file handler.
Class Detail
jls.net.http.HttpServer()
Creates a HTTP server.
Method Detail
<static> {jls.net.http.HttpServer} jls.net.http.HttpServer.create(addr, backlog)
Creates a HTTP server for a specified socket address.
Parameters:
{jls.net.InetSocketAddress} addr
The socket address.
{Number} backlog Optional
The backlog.
Returns:
{jls.net.http.HttpServer} the created HTTP server.

{jls.net.http.HttpContext} createContext(path, handler)
Creates a context at the given path.
Parameters:
{String} path
The path of the context.
{Function} handler Optional
The handler of the context.
Returns:
{jls.net.http.HttpContext} the created context.

<static> jls.net.http.HttpServer.fileHandler(httpExchange)
A basic file handler.
Parameters:
{jls.net.http.HttpExchange} httpExchange
The socket address.

Documentation generated by JsDoc Toolkit 2.3.2 on Sun Dec 26 2010 23:22:37 GMT+0100 (CET)