【文件属性】:
文件名称:ruboty-http_listener:Ruboty HTTP 监听插件
文件大小:5KB
文件格式:ZIP
更新时间:2021-07-09 09:18:12
Ruby
Ruby::HttpListener
这是一个用于在 HTTP 上添加另一个接口的插件
安装
将此行添加到应用程序的 Gemfile 中:
gem 'ruboty-http_listener' , github : 'amacou/ruboty-http_listener'
然后执行:
$ bundle
用法
说
执行下面的命令
curl -G http://localhost:8877/say --data-urlencode to='#ruboty' --data-urlencode body='hello \u3042\u307e\u3053\u3046'
然后
ruboty > hello あまこう
信息
执行下面的命令
curl http://localhost:8877/message --data-urlencode from='#ruboty' --data-urlencode body='ru
【文件预览】:
ruboty-http_listener-master
----.gitignore(118B)
----LICENSE.txt(1KB)
----README.md(1KB)
----lib()
--------ruboty()
----Gemfile(105B)
----ruboty-http_listener.gemspec(954B)
----Rakefile(29B)