Class: Component

express~ Component

new Component()

| Setting: { name: String, value: Any } | Plugin: { path: String, handler: (Request, ExpressRes, (Void → Void) → Void) } | Route: { method: String, spec: String|RegExp, handler: (Request → Future[Error, Response]) } | Engine: { extension: String, engine: (Path, Object, (Error, String → Void) → Void) }

Represents a server's configuration.

Servers are made up of several components, which are stacked on top of each other in the order they're given. Components that are installed first have precedence, and are executed first whenever a handler for a particular route is called.

Source: