Skip to content

Routing and request handling

How Dwara matches an incoming request to an upstream, and how it can shape the request and response along the way. These are the route-level building blocks you compose to expose your services: edge policies, transforms, caching, versioning, traffic splitting, protocol handling, discovery, and config scaffolding from an OpenAPI spec.

The core routing vocabulary (Listener, Route, Service, Upstream, Endpoint) is covered in Configuration; this section covers the optional route blocks that go on top.

In this section

Runnable demo

Run these features against a live gateway: demos/01-routing/ in the repository. The test scripts cover the exact, prefix, and regex match types (test-01 through test-03), redirects, direct responses, mock responses, path rewrites, method allowlists, and host-header matches (test-04 through test-08 and test-10). The category README covers prerequisites and teardown.