feat(smartproxy): Update documentation and route helper functions; add createPortRange, createSecurityConfig, createStaticFileRoute, and createTestRoute helpers to the readme and tests. Refactor test examples to use the new helper API and remove legacy connection handling files (including the old connection handler and PortRangeManager) to fully embrace the unified route‐based configuration.
This commit is contained in:
@ -463,6 +463,10 @@ Available helper functions:
|
||||
- `createBlockRoute()` - Create a route to block specific traffic
|
||||
- `createLoadBalancerRoute()` - Create a route for load balancing
|
||||
- `createHttpsServer()` - Create a complete HTTPS server setup with HTTP redirect
|
||||
- `createPortRange()` - Helper to create port range configurations from various formats
|
||||
- `createSecurityConfig()` - Helper to create security configuration objects
|
||||
- `createStaticFileRoute()` - Create a route for serving static files
|
||||
- `createTestRoute()` - Create a test route for debugging and testing purposes
|
||||
|
||||
## What You Can Do with SmartProxy
|
||||
|
||||
|
Reference in New Issue
Block a user