mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-28 03:07:07 +02:00
docs(middleware): update README to clarify request-variable substitution
Added details on request-variable substitution, explaining how it reads fields from the active outbound request and resolves upstream variables from the current route context.
This commit is contained in:
@@ -16,6 +16,8 @@ This package implements a flexible HTTP middleware system for GoDoxy. Middleware
|
||||
|
||||
Response body rewriting is only applied to unencoded, text-like content types (for example `text/*`, JSON, YAML, XML). Response status and headers can always be modified.
|
||||
|
||||
Request-variable substitution reads request fields from the active outbound request. Upstream variables such as `$upstream_host` and `$upstream_url` resolve from the current route context, which is normally attached by the route / reverse-proxy layer before middleware executes.
|
||||
|
||||
## Architecture
|
||||
|
||||
```mermaid
|
||||
|
||||
Reference in New Issue
Block a user