Module: HTTP::Protocol::HTTP2::Acknowledgement

Included in:
PingFrame, SettingsFrame
Defined in:
lib/http/protocol/http2/ping_frame.rb

Instance Method Summary collapse

Instance Method Details

#acknowledgeObject



33
34
35
36
37
38
39
40
# File 'lib/http/protocol/http2/ping_frame.rb', line 33

def acknowledge
  frame = self.class.new
  
  frame.length = 0
  frame.set_flags(ACKNOWLEDGEMENT)
  
  return frame
end

#acknowledgement?Boolean

Returns:

  • (Boolean)


29
30
31
# File 'lib/http/protocol/http2/ping_frame.rb', line 29

def acknowledgement?
  flag_set?(ACKNOWLEDGEMENT)
end