BrowserRouter - HTTP routing and middleware management for KOS web services.
The BrowserRouter model provides a comprehensive HTTP routing system that handles incoming
requests via WebSocket topics and routes them through registered middleware and handlers.
It enables KOS applications to expose REST APIs, handle device communication, and manage
HTTP-based integrations with automatic OpenAPI specification generation.
BrowserRouter - HTTP routing and middleware management for KOS web services.
The BrowserRouter model provides a comprehensive HTTP routing system that handles incoming requests via WebSocket topics and routes them through registered middleware and handlers. It enables KOS applications to expose REST APIs, handle device communication, and manage HTTP-based integrations with automatic OpenAPI specification generation.
Key Features
kos.http.requesttopic/openapi.jsonTopic-Based Reactivity
The model listens to these KOS topics for HTTP request handling:
kos.http.request- Incoming HTTP requests from clients or other serviceskos.http.response- Outgoing HTTP responses with status codes and dataCommon Use Cases
Example: Basic Usage
Use Declared Type
See
BrowserRouterOptions - Configuration options for BrowserRouter instances