aria:Nim的Aria2 API库使用RPC用于任何后端 源码
咏叹调 API库,对所有后端均使用基于HTTP的JSON-RPC。 用 import aria import std/json # $ let client: Aria = newAria (ip = "127.0.0.1" , port = 6800 . uint16 ) aria: ## These are just Aria API calls, same naming as from Aria Documentation. echo client. getVersion () ## See also addTorrent(), addMetalink(), addUrl(), etc 浏览器中的Aria,JavaScript目标: import aria import std/[jsffi, jsfetch] ## fetch() let client:
用户评论