Skip to main content

nanobus.transport.http.server/v1

Description

APISource code

This component provides extensible HTTP server capabilities. The functionality of your application is added by including routers and middleware components.

Options

address

address *string

The listening address of the server.

middleware

middlewareComponent[]

Array of HTTP Middleware component configurations.

routers

routersComponent[]

Array of HTTP Router component configurations.

Examples

Basic configuration

transports:
http:
uses: "nanobus.transport.http.server/v1"
with:
address: ':8080'
middleware:
### See middleware
routers:
### See routers