Added dynamic capture example

- Added dynamic capture plugin example
- Added dynamic capture plugin doc
- Removed ztnc from plugin example
This commit is contained in:
Toby Chui
2025-05-30 21:21:08 +08:00
parent a1df5a1060
commit cd822ed904
59 changed files with 1502 additions and 4134 deletions

View File

@@ -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!