Module: Protocol::HTTP2::Acknowledgement

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

Instance Method Summary collapse

Instance Method Details

#acknowledgeObject



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

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

#acknowledgement?Boolean

Returns:

  • (Boolean)


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

def acknowledgement?
	flag_set?(ACKNOWLEDGEMENT)
end