mirror of
https://github.com/tobychui/zoraxy.git
synced 2025-10-27 12:04:06 +01:00
Added dynamic capture example
- Added dynamic capture plugin example - Added dynamic capture plugin doc - Removed ztnc from plugin example
This commit is contained in:
@@ -76,7 +76,7 @@ pathRouter.RegisterStaticCaptureHandle(STATIC_CAPTURE_INGRESS, http.DefaultServe
|
||||
|
||||
The `SetDefaultHandler` is used to handle exceptions where a request is forwarded to your plugin but it cannot be handled by any of your registered path handlers. This is usually an implementation bug on the plugin side and you can add some help message or debug log to this function if needed.
|
||||
|
||||
|
||||
The `RegisterStaticCaptureHandle` is used to register the static capture ingress endpoint, so Zoraxy knows where to forward the HTTP request when it thinks your plugin shall be the one handling the request. In this example, `/s_capture` is used for static capture endpoint.
|
||||
|
||||
---
|
||||
|
||||
@@ -261,4 +261,5 @@ Request URI: /test_b
|
||||
|
||||
---
|
||||
|
||||
Enjoy exploring static capture in Zoraxy!
|
||||
Enjoy exploring static capture in Zoraxy!
|
||||
|
||||
|
||||
Reference in New Issue
Block a user