- Kappa UI
- Other Projects
This module implements a simple HTTP server based on Mongoose library.
port. Otherwise, the port can be specified with
valueis specified. List of available options can be found here.
pathregex will be handled by function
func(expressions are checked in the order they were added). The function arguments are the connection object and the regex match (or a list of strings if the regex was created with
url, with status
code(default is 302: Found, which is a temporary redirect).
server.connection extends the
stream type, implementing the write operations. Note that status and headers must be sent before
any write operations (status is sent before headers).