Module: CurlCommandGenerator
- Included in:
- HttpClient
- Defined in:
- lib/curl_command_generator.rb
Instance Method Summary collapse
Instance Method Details
#curlize(url, options = {}) ⇒ Object
2 3 4 5 |
# File 'lib/curl_command_generator.rb', line 2 def curlize(url, = {}) = {:method => :get, :body => nil, :headers => nil}.merge( ) "curl -i #{headers2args([:headers])} #{method2arg([:method])} #{body2arg([:body])} #{url}" end |