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

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Posts a content.
- !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: "body:"
    body: a Hash or an Array of body part. e.g. { &quot;a&quot; =&gt; &quot;b&quot; } =&gt; '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; 'a=b&amp;a=c'.
    type: :LABELED
  - !ruby/struct:SM::Flow::P 
    body: When you pass a File as a value, it will be posted as a multipart/form-data. e.g. { 'upload' =&gt; file }
  - !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 post_content(uri) { |chunked_body| ... }. Size of each chunk may not be the same.
  type: :NOTE
- !ruby/struct:SM::Flow::P 
  body: post_content follows HTTP redirect status (see HTTP::Status.redirect?) internally and try to post the content to 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 post method.
full_name: HTTPClient#post_content
is_singleton: false
name: post_content
params: (uri, body = nil, extheader = {}, &block)
visibility: public
