class HTTP::Request::Body

def each(&block)

Other tags:
    Yieldparam: -
def each(&block)
  if @source.is_a?(String)
    yield @source
  elsif @source.respond_to?(:read)
    IO.copy_stream(@source, ProcIO.new(block))
    @source.rewind if @source.respond_to?(:rewind)
  elsif @source.is_a?(Enumerable)
    @source.each(&block)
  end
end