class Protocol::HTTP2::Stream

def send_headers?

HEADERS frames can be sent on a stream in the "idle", "reserved (local)", "open", or "half-closed (remote)" state. Despite it's name, it can also be used for trailers.
def send_headers?
	@state == :idle or @state == :reserved_local or @state == :open or @state == :half_closed_remote
end