aria:Nim的Aria2 API库使用RPC用于任何后端 源码

上传:deterrent65674 浏览: 9 推荐: 0 文件:ZIP 大小:26.68KB 上传时间:2021-05-09 08:21:39 版权申诉
咏叹调 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:
上传资源
用户评论