class Protocol::Rack::Adapter::Rack3
def self.make_response(env, response)
def self.make_response(env, response) # These interfaces should be largely compatible: headers = response.headers.to_h if protocol = response.protocol headers['rack.protocol'] = protocol end if body = response.body and body.stream? # Force streaming response: body = body.method(:call) end [response.status, headers, body] end