Vetis Matcher API Offers Declarative HTTP Routing Rules in Rust
The Vetis Matcher API provides a fluent, declarative way to match HTTP traffic before a hook or handler runs, covering factors such as method, query values, headers, and protocol version. The approach is drawn from the project's integration tests and public API, which exercise the matchers against live TLS-enabled HTTP requests. Vetis separates server configuration from matching logic, so requests and responses can be evaluated independently of how the server itself is set up. Its public surface includes request matchers, response matchers, grouped matchers, and CEL-based expression matchers, which can be composed into more complex conditions. Examples include path matchers with wildcard support, header checks for values such as API keys, method filters, and query parameter matchers for tenant-specific routing.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in