Class: Baykit::BayServer::Docker::Http::H1::H1ProtocolHandler

Inherits:
Protocol::ProtocolHandler
  • Object
show all
Includes:
Agent, Baykit::BayServer::Docker::Http::H1, Command, Protocol, Util
Defined in:
lib/baykit/bayserver/docker/http/h1/h1_protocol_handler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(h1_handler, pkt_unpacker, pkt_packer, cmd_unpacker, cmd_packer, svr_mode) ⇒ H1ProtocolHandler

Returns a new instance of H1ProtocolHandler.



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

def initialize(h1_handler, pkt_unpacker, pkt_packer, cmd_unpacker, cmd_packer, svr_mode)
  super(pkt_unpacker, pkt_packer, cmd_unpacker, cmd_packer, h1_handler, svr_mode)
end

Instance Attribute Details

#keepingObject (readonly)

Returns the value of attribute keeping.



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

def keeping
  @keeping
end

Instance Method Details

#max_req_packet_data_sizeObject

Implements ProtocolHandler



39
40
41
# File 'lib/baykit/bayserver/docker/http/h1/h1_protocol_handler.rb', line 39

def max_req_packet_data_size
  return H1Packet::MAX_DATA_LEN
end

#max_res_packet_data_sizeObject



43
44
45
# File 'lib/baykit/bayserver/docker/http/h1/h1_protocol_handler.rb', line 43

def max_res_packet_data_size
  return H1Packet::MAX_DATA_LEN
end

#protocolObject



47
48
49
# File 'lib/baykit/bayserver/docker/http/h1/h1_protocol_handler.rb', line 47

def protocol
  return HtpPortDocker::H1_PROTO_NAME
end

#resetObject

Implements Reusable



30
31
32
33
# File 'lib/baykit/bayserver/docker/http/h1/h1_protocol_handler.rb', line 30

def reset
  super
  @keeping = false
end