Module: Protocol::HTTP2::Acknowledgement

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

Instance Method Summary collapse

Instance Method Details

#acknowledgeObject



21
22
23
24
25
26
27
28
# File 'lib/protocol/http2/ping_frame.rb', line 21

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

#acknowledgement!Object



17
18
19
# File 'lib/protocol/http2/ping_frame.rb', line 17

def acknowledgement!
	set_flags(ACKNOWLEDGEMENT)
end

#acknowledgement?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/protocol/http2/ping_frame.rb', line 13

def acknowledgement?
	flag_set?(ACKNOWLEDGEMENT)
end