Method: Protocol::HTTP2::Connection#exclusive_child

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

#exclusive_child(stream) ⇒ Object



142
143
144
145
146
147
148
149
150
151
152
# File 'lib/protocol/http2/connection.rb', line 142

def exclusive_child(stream)
  stream.children = @children
  
  @children.each do |child|
    child.dependent_id = stream.id
  end
  
  @children = {stream.id => stream}
  
  stream.dependent_id = 0
end