Class: DS9::Frames::Headers
- Inherits:
-
Frame
- Object
- Data
- Frame
- DS9::Frames::Headers
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)
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
#category ⇒ Object
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);
}
|
70
|
# File 'lib/ds9.rb', line 70
def ; true; end
|
#push_response? ⇒ Boolean
73
|
# File 'lib/ds9.rb', line 73
def push_response?; category == PUSH_RESPONSE; end
|
#request? ⇒ Boolean
71
|
# File 'lib/ds9.rb', line 71
def request?; category == REQUEST; end
|
#response? ⇒ Boolean
72
|
# File 'lib/ds9.rb', line 72
def response?; category == RESPONSE; end
|