5 releases
0.4.2 | Dec 16, 2021 |
---|---|
0.4.1 | Dec 15, 2021 |
0.4.0 | Dec 13, 2021 |
0.3.0 | Dec 7, 2021 |
0.3.0-alpha.5 | Dec 6, 2021 |
#300 in #rest
24 downloads per month
Used in 3 crates
(via clashctl-interactive)
31KB
779 lines
Clashctl Core
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.
RESTful API Methods
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 |
Dependencies
~3–5MB
~88K SLoC