class Async::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? Async::HTTP::Body::Readable return body elsif body.is_a? Array return self.new(body) elsif body return self.for(body) end end