Class: Baykit::BayServer::Docker::Http::H2::H2Settings

Inherits:
Object
  • Object
show all
Defined in:
lib/baykit/bayserver/docker/http/h2/h2_settings.rb

Constant Summary collapse

DEFAULT_HEADER_TABLE_SIZE =
4096
DEFAULT_ENABLE_PUSH =
true
DEFAULT_MAX_CONCURRENT_STREAMS =
-1
DEFAULT_MAX_WINDOW_SIZE =
65535
DEFAULT_MAX_FRAME_SIZE =
16384
DEFAULT_MAX_HEADER_LIST_SIZE =
-1

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeH2Settings

Returns a new instance of H2Settings.



22
23
24
# File 'lib/baykit/bayserver/docker/http/h2/h2_settings.rb', line 22

def initialize
  reset
end

Instance Attribute Details

#enable_pushObject

Returns the value of attribute enable_push.



16
17
18
# File 'lib/baykit/bayserver/docker/http/h2/h2_settings.rb', line 16

def enable_push
  @enable_push
end

#header_table_sizeObject

Returns the value of attribute header_table_size.



15
16
17
# File 'lib/baykit/bayserver/docker/http/h2/h2_settings.rb', line 15

def header_table_size
  @header_table_size
end

#initial_window_sizeObject

Returns the value of attribute initial_window_size.



18
19
20
# File 'lib/baykit/bayserver/docker/http/h2/h2_settings.rb', line 18

def initial_window_size
  @initial_window_size
end

#max_concurrent_streamsObject

Returns the value of attribute max_concurrent_streams.



17
18
19
# File 'lib/baykit/bayserver/docker/http/h2/h2_settings.rb', line 17

def max_concurrent_streams
  @max_concurrent_streams
end

#max_frame_sizeObject

Returns the value of attribute max_frame_size.



19
20
21
# File 'lib/baykit/bayserver/docker/http/h2/h2_settings.rb', line 19

def max_frame_size
  @max_frame_size
end

#max_header_list_sizeObject

Returns the value of attribute max_header_list_size.



20
21
22
# File 'lib/baykit/bayserver/docker/http/h2/h2_settings.rb', line 20

def max_header_list_size
  @max_header_list_size
end

Instance Method Details

#resetObject



26
27
28
29
30
31
32
33
# File 'lib/baykit/bayserver/docker/http/h2/h2_settings.rb', line 26

def reset
  @header_table_size = DEFAULT_HEADER_TABLE_SIZE
  @enable_push = DEFAULT_ENABLE_PUSH
  @max_concurrent_streams = DEFAULT_MAX_CONCURRENT_STREAMS
  @initial_window_size = DEFAULT_MAX_WINDOW_SIZE
  @max_frame_size = DEFAULT_MAX_FRAME_SIZE
  @max_header_list_size = DEFAULT_MAX_HEADER_LIST_SIZE
end