Method: Protocol::HTTP2::Connection#receive_data

Defined in:
lib/protocol/http2/connection.rb

#receive_data(frame) ⇒ Object



324
325
326
327
328
329
330
331
332
# File 'lib/protocol/http2/connection.rb', line 324

def receive_data(frame)
	consume_local_window(frame)
	
	if stream = @streams[frame.stream_id]
		stream.receive_data(frame)
	else
		raise ProtocolError, "Cannot receive data for idle stream #{frame.stream_id}"
	end
end