【文件属性】:
文件名称:propitious-woof
文件大小:39KB
文件格式:ZIP
更新时间:2021-05-03 21:15:01
Ruby
赫利
Hurley是一个没有运行时依赖项的Ruby,它为使用不同的HTTP适配器提供了一个通用接口。 它是法拉第的演变,内部结构经过了重新考虑。
Hurley围绕三个主要类别:客户端,请求和响应。 客户端为所有HTTP请求设置默认属性,包括基本url,标头和选项。
require "hurley"
# If you prefer Addressable::URI, require this too:
# This is required automatically if `Addressable::URI` is defined when Hurley
# is being loaded.
require "hurley/addressable"
client = Hurley :: Client . new "https://api.github.com"
client . hea
【文件预览】:
propitious-woof-master
----.travis.yml(552B)
----contributors.yaml(393B)
----Rakefile(58B)
----test()
--------live()
--------query_test.rb(6KB)
--------helper.rb(265B)
--------url_test.rb(16KB)
--------client_test.rb(18KB)
--------multipart_test.rb(10KB)
--------header_test.rb(3KB)
--------test_test.rb(2KB)
----Gemfile(201B)
----LICENSE.md(1KB)
----.gitignore(40B)
----hurley.gemspec(938B)
----lib()
--------hurley.rb(2KB)
--------hurley()
----README.md(9KB)
----script()
--------bootstrap(38B)
--------test(4KB)
--------package(156B)