mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-04 00:00:37 -04:00
this plugin is an HTTP/2 only plugin which enables bidirectional streaming the client can continue writing request streams as response streams arrive midway Closes https://github.com/HoneyryderChuck/httpx/discussions/71
22 lines
332 B
Ruby
22 lines
332 B
Ruby
# frozen_string_literal: true
|
|
|
|
class SettingsTimeoutServer < TestHTTP2Server
|
|
attr_reader :frames
|
|
|
|
def initialize(**)
|
|
super
|
|
@frames = []
|
|
end
|
|
|
|
private
|
|
|
|
def handle_connection(conn, sock)
|
|
conn.on(:frame_received) do |frame|
|
|
@frames << frame
|
|
end
|
|
conn.on(:goaway) do
|
|
sock.close
|
|
end
|
|
end
|
|
end
|