A HTTP server.
Defined in: HttpServer.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Creates a HTTP server.
|
| Field Attributes | Field Name and Description |
|---|---|
| <static> |
jls.net.http.HttpServer.defaultContentTypes
Default content type objects.
|
| Method Attributes | Method Name and Description |
|---|---|
| <static> |
jls.net.http.HttpServer.bodyHandler(httpExchange)
A basic body handler implementation.
|
| <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.createFolderPage(reqPath, filenames)
A basic folder page generation implementation.
|
| <static> |
jls.net.http.HttpServer.defaultHandler(httpExchange)
A default handler implementation with the HTTP status: not found.
|
| <static> |
jls.net.http.HttpServer.fileHandler(httpExchange)
A basic file handler implementation.
|