class Async::HTTP::Protocol::HTTP2::Response
def assign_headers(headers)
def assign_headers(headers) headers.each do |key, value| if key == STATUS @status = value.to_i elsif key == REASON @reason = value else @headers[key] = value end end end
def initialize(protocol, stream)
def initialize(protocol, stream) super(self.version, nil, nil, Headers.new, Body::Writable.new) @protocol = protocol @stream = stream end