--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: resp
comment: 
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "_uri_:"
    body: uri to query (URI object or String)
  type: :NOTE
- !ruby/struct:SM::Flow::P 
  body: Generic http transaction method. It will return a Net::HTTPResponse object or raise an exception
- !ruby/struct:SM::Flow::P 
  body: If a block is given, it will yield the response (see :yield option)
- !ruby/struct:SM::Flow::P 
  body: "Currently supported <em>options</em>:"
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "method:"
    body: request method [:get (default), :post or :head]
  - !ruby/struct:SM::Flow::LI 
    label: "open_timeout:"
    body: open timeout for the proxy
  - !ruby/struct:SM::Flow::LI 
    label: "read_timeout:"
    body: read timeout for the proxy
  - !ruby/struct:SM::Flow::LI 
    label: "cache:"
    body: should we cache results?
  - !ruby/struct:SM::Flow::LI 
    label: "yield:"
    body: if :final [default], calls the block for the response object; if :all, call the block for all intermediate redirects, too
  - !ruby/struct:SM::Flow::LI 
    label: "max_redir:"
    body: how many redirects to follow before raising the exception if -1, don't follow redirects, just return them
  - !ruby/struct:SM::Flow::LI 
    label: "range:"
    body: make a ranged request (usually GET). accepts a string for HTTP/1.1 &quot;Range:&quot; header (i.e. &quot;bytes=0-1000&quot;)
  - !ruby/struct:SM::Flow::LI 
    label: "body:"
    body: request body (usually for POST requests)
  - !ruby/struct:SM::Flow::LI 
    label: "headers:"
    body: additional headers to be set for the request. Its value must be a Hash in the form { 'Header' =&gt; 'value' }
  type: :NOTE
full_name: "::Utils::HttpUtil#get_response"
is_singleton: false
name: get_response
params: (uri_or_s, options = {}) {|resp| ...}
visibility: public
