Version: 2.2.0
proxy-mirror
The proxy-mirror plugin, which provides the ability to mirror client requests.
Note: The response returned by the mirror request is ignored.
Attributes#
| Name | Type | Requirement | Default | Valid | Description |
|---|---|---|---|---|---|
| host | string | optional | Specify a mirror service address, e.g. http://127.0.0.1:9797 (address needs to contain schema: http or https, not URI part) |
Examples#
Enable the plugin#
1: enable the proxy-mirror plugin for a specific route :
Test plugin:
Since the specified mirror address is 127.0.0.1:9797, so to verify whether this plugin is in effect, we need to confirm on the service with port 9797. For example, we can start a simple server: python -m SimpleHTTPServer 9797
Disable Plugin#
Remove the corresponding JSON in the plugin configuration to disable the plugin immediately without restarting the service:
The plugin has been disabled now.