class Protocol::HTTP2::PendingSettings

Attributes

current[R]
pending[R]

Public Class Methods

new(current = Settings.new) click to toggle source
# File lib/protocol/http2/settings_frame.rb, line 165
def initialize(current = Settings.new)
        @current = current
        @pending = current.dup
        
        @queue = []
end

Public Instance Methods

acknowledge() click to toggle source
# File lib/protocol/http2/settings_frame.rb, line 180
def acknowledge
        if changes = @queue.shift
                @current.update(changes)
                
                return changes
        else
                raise ProtocolError, "Cannot acknowledge settings, no changes pending"
        end
end
append(changes) click to toggle source
# File lib/protocol/http2/settings_frame.rb, line 175
def append(changes)
        @queue << changes
        @pending.update(changes)
end
enable_push() click to toggle source
# File lib/protocol/http2/settings_frame.rb, line 194
def enable_push
        @current.enable_push
end
header_table_size() click to toggle source
# File lib/protocol/http2/settings_frame.rb, line 190
def header_table_size
        @current.header_table_size
end
initial_window_size() click to toggle source
# File lib/protocol/http2/settings_frame.rb, line 202
def initial_window_size
        @current.initial_window_size
end
maximum_concurrent_streams() click to toggle source
# File lib/protocol/http2/settings_frame.rb, line 198
def maximum_concurrent_streams
        @current.maximum_concurrent_streams
end
maximum_frame_size() click to toggle source
# File lib/protocol/http2/settings_frame.rb, line 206
def maximum_frame_size
        @current.maximum_frame_size
end
maximum_header_list_size() click to toggle source
# File lib/protocol/http2/settings_frame.rb, line 210
def maximum_header_list_size
        @current.maximum_header_list_size
end