http-dump:转储http请求使用WebMock

时间:2021-05-13 11:51:28
【文件属性】:
文件名称:http-dump:转储http请求使用WebMock
文件大小:7KB
文件格式:ZIP
更新时间:2021-05-13 11:51:28
Ruby HTTP转储 使用转储http请求。 支持的HTTP库= ,Net :: HTTP,HTTPParty,HTTPClient,Excon,更多... $ gem install http-dump 用法 HTTPDump.dump(options = {},&block) require 'net/http' require 'uri' require 'http-dump' HTTPDump . dump { Net :: HTTP . get ( URI ( 'http://example.com' ) ) } 结果 > GET http://example.com/ with headers {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Host'=>'
【文件预览】:
http-dump-master
----http-dump.gemspec(949B)
----LICENSE.txt(1KB)
----lib()
--------http-dump.rb(1KB)
--------http-dump()
----Gemfile(104B)
----spec()
--------spec_helper.rb(103B)
--------http-dump_spec.rb(3KB)
----Rakefile(118B)
----.travis.yml(60B)
----README.md(4KB)
----.rspec(31B)
----.gitignore(154B)

网友评论