class Protocol::HTTP::Body::Buffered
def self.wrap(body)
-
(Readable, nil)
- the wrapped body or nil if nil was given.
def self.wrap(body) if body.is_a? Readable return body elsif body.is_a? Array return self.new(body) elsif body.is_a?(String) return self.new([body]) elsif body return self.for(body) end end