clashctl-core

Crates.ioclashctl-core
lib.rsclashctl-core
version0.4.2
sourcesrc
created_at2021-12-06 17:55:18.419727
updated_at2021-12-16 09:01:57.73608
descriptionClash RESTful API
homepage
repositoryhttps://github.com/George-Miao/clashctl
max_upload_size
id493305
size30,441
Pop (George-Miao)

documentation

README

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
Commit count: 398

cargo fmt