Lib for interacting with Clash RESTful API. This crate does not contain binary. For more information, check clashctl, a CLI & TUI tool built with this crate.
Functions of Clash
| Function Name | Method | Endpoint |
| ------------------------- | ------ | ------------------------------------ |
| get_version
| GET | /logs |
| get_traffic
| GET | /traffic |
| get_version
| GET | /version |
| get_configs
| GET | /config |
| reload_configs
| PUT | /config |
| TODO | PATCH | /config |
| get_proxies
| GET | /proxies |
| get_proxy
| GET | /proxies/:name |
| set_proxygroup_selected
| PUT | /proxies/:name |
| get_proxy_delay
| GET | /proxies/:name/delay |
| get_rules
| GET | /rules |
| get_connections
| GET | /connections |
| close_connections
| DELETE | /connections |
| close_one_connection
| DELETE | /connections/:id |
| TODO | GET | /providers/proxies |
| TODO | GET | /providers/proxies/:name |
| TODO | PUT | /providers/proxies/:name |
| TODO | GET | /providers/proxies/:name/healthcheck |