HTTP/HTTPS server create + listen helpers.
Engine-internal — not for sandboxed app require.
- Description:
- HTTP/HTTPS server create + listen helpers.
Engine-internal — not for sandboxed app require.
Methods
(inner) handleServerError(error, port, protocolopt, logger)
Parameters:
| Name |
Type |
Attributes |
Description |
error |
Error
|
|
|
port |
number
|
|
|
protocol |
string
|
<optional>
|
|
logger |
object
|
|
|
(inner) startHttpServers(options) → {Object}
- Description:
- Start HTTP and/or HTTPS listeners for the given request handler.
Parameters:
| Name |
Type |
Description |
options |
object
|
Properties
| Name |
Type |
Attributes |
Description |
config |
object
|
|
|
logger |
object
|
|
|
projectRoot |
string
|
|
|
reqHandler |
function
|
|
(req, res) => void |
onServer |
function
|
<optional>
|
(server, protocol) => void after create, before listen |
|
Returns:
HTTP/HTTPS server instances (or null if disabled)
-
Type
-
Object