bogart-edge
Version:
Fast JSGI web framework taking inspiration from Sinatra
26 lines (15 loc) • 714 B
Markdown
The Bogart Application constructor, `bogart.app`, exposes a helper for creating JSGI
servers.
Start a server to accept connections on port and hostname. If hostname is ommitted,
connections on any IPv4 address will be accepted.
This function is asynchronous and returns a promise.
Add a JSGI application (middleware) or Bogart Router to the server's JSGI stack.
## Event: 'beforeAddMiddleware'
`function(app, args) { }`
Emitted before `app.use` inserts the application or router into the JSGI stack.
`function(app, middleware) { }`
Emitted after `app.use` inserts the application or router into the JSGI stack.