class Protocol::HTTP2::Stream
def write_push_promise(stream_id, headers, flags = 0, **options)
A push promise is server request -> client -> server response -> client.
A normal request is client request -> server response -> client.
def write_push_promise(stream_id, headers, flags = 0, **options) PushPromiseFrame.new(@id, flags) tion.write_frames do |framer| @connection.encode_headers(headers) pack(stream_id, data, maximum_size: @connection.maximum_frame_size) .write_frame(frame) frame