module Protocol::HTTP::Body::Streamable
def self.request(&block)
@parameter block [Proc] The block that generates the body.
Generate a new streaming request body using the given block to generate the body.
def self.request(&block) RequestBody.new(block) end
def self.response(request, &block)
@parameter block [Proc] The block that generates the body.
@parameter request [Request] The request.
Generate a new streaming response body using the given block to generate the body.
def self.response(request, &block) ResponseBody.new(block, request.body) end