class Protocol::HTTP2::Stream

def write_headers(priority, headers, flags = 0)

def write_headers(priority, headers, flags = 0)
 HeadersFrame.new(@id, flags)
tion.write_frames do |framer|
 @connection.encode_headers(headers)
pack(priority, data, maximum_size: @connection.maximum_frame_size)
.write_frame(frame)
frame