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

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Retrieves a web resource.
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "uri:"
    body: a String or an URI object which represents an URL of web resource.
  - !ruby/struct:SM::Flow::LI 
    label: "query:"
    body: a Hash or an Array of query part of URL. e.g. { &quot;a&quot; =&gt; &quot;b&quot; } =&gt; 'http://host/part?a=b'. Give an array to pass multiple value like
  - !ruby/object:SM::Flow::LIST 
    contents: 
    - !ruby/struct:SM::Flow::LI 
      label: "[\"a\", \"b\"], [\"a\", \"c\"]"
      body: =&gt; 'http://host/part?a=b&amp;a=c'.
    type: :LABELED
  - !ruby/struct:SM::Flow::LI 
    label: "extheader:"
    body: a Hash or an Array of extra headers. e.g. { 'Accept' =&gt; '*/*' } or [['Accept', 'image/jpeg'], ['Accept', 'image/png']].
  - !ruby/struct:SM::Flow::LI 
    label: "&block:"
    body: Give a block to get chunked message-body of response like get_content(uri) { |chunked_body| ... }. Size of each chunk may not be the same.
  type: :NOTE
- !ruby/struct:SM::Flow::P 
  body: get_content follows HTTP redirect status (see HTTP::Status.redirect?) internally and try to retrieve content from redirected URL. See redirect_uri_callback= how HTTP redirection is handled.
- !ruby/struct:SM::Flow::P 
  body: If you need to get full HTTP response including HTTP status and headers, use get method. get returns HTTP::Message as a response and you need to follow HTTP redirect by yourself if you need.
full_name: HTTPClient#get_content
is_singleton: false
name: get_content
params: (uri, query = nil, extheader = {}, &block)
visibility: public
