class HTTP::Request

def request_body(body, opts)

Transforms body to an object suitable for streaming.
def request_body(body, opts)
  body = Request::Body.new(body) unless body.is_a?(Request::Body)
  body = opts[:auto_deflate].deflated_body(body) if opts[:auto_deflate]
  body
end