class Async::HTTP::Protocol::HTTP2::Response::Stream
def receive_initial_headers(headers, end_stream)
def receive_initial_headers(headers, end_stream) headers.each do |key, value| if key == STATUS @response.status = Integer(value) elsif key == PROTOCOL @response.protocol = value elsif key == CONTENT_LENGTH @length = Integer(value) else add_header(key, value) end end @response.headers = @headers unless @response.valid? send_reset_stream(::Protocol::HTTP2::Error::PROTOCOL_ERROR) else # We only construct the input/body if data is coming. unless end_stream @input = Body::Writable.new(@length) @response.body = @input end end self.notify! return headers end