Class: DS9::Frames::Headers

Inherits:
Frame
  • Object
show all
Defined in:
lib/ds9.rb,
ext/ds9/ds9_frames.c

Constant Summary collapse

REQUEST =
INT2NUM(NGHTTP2_HCAT_REQUEST)
RESPONSE =
INT2NUM(NGHTTP2_HCAT_RESPONSE)
PUSH_RESPONSE =
INT2NUM(NGHTTP2_HCAT_PUSH_RESPONSE)
HEADERS =
INT2NUM(NGHTTP2_HCAT_HEADERS)

Instance Method Summary collapse

Methods inherited from Frame

#continuation?, #data?, #end_stream?, #flags, #goaway?, #header, #length, #ping?, #priority?, #push_promise?, #rst_stream?, #settings?, #stream_id, #type, #window_update?

Instance Method Details

#categoryObject



103
104
105
106
107
108
109
# File 'ext/ds9/ds9_frames.c', line 103

static VALUE header_category(VALUE self)
{
    nghttp2_frame *frame;
    TypedData_Get_Struct(self, nghttp2_frame, &ds9_frame_type, frame);

    return INT2NUM(frame->headers.cat);
}

#headers?Boolean

Returns:

  • (Boolean)


70
# File 'lib/ds9.rb', line 70

def headers?; true; end

#push_response?Boolean

Returns:

  • (Boolean)


73
# File 'lib/ds9.rb', line 73

def push_response?; category == PUSH_RESPONSE; end

#request?Boolean

Returns:

  • (Boolean)


71
# File 'lib/ds9.rb', line 71

def request?;       category == REQUEST; end

#response?Boolean

Returns:

  • (Boolean)


72
# File 'lib/ds9.rb', line 72

def response?;      category == RESPONSE; end