Class: FCGI::UnknownTypeRecord

Inherits:
Record
  • Object
show all
Defined in:
lib/cgialt/fcgi/core.rb

Constant Summary collapse

BODY_FORMAT =

uint8_t type; uint8_t reserved;

'CC7'

Constants inherited from Record

Record::HEADER_FORMAT, Record::HEADER_LENGTH, Record::RECORD_CLASS

Instance Attribute Summary collapse

Attributes inherited from Record

#request_id, #type

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Record

class_for, #management_record?, parse_header, #serialize, #version

Constructor Details

#initialize(id, type) ⇒ UnknownTypeRecord

Returns a new instance of UnknownTypeRecord.



423
424
425
426
# File 'lib/cgialt/fcgi/core.rb', line 423

def initialize(id, type)
  super FCGI_UNKNOWN_TYPE, id
  @unknown_type = type
end

Instance Attribute Details

#unknown_typeObject (readonly)

Returns the value of attribute unknown_type.



428
429
430
# File 'lib/cgialt/fcgi/core.rb', line 428

def unknown_type
  @unknown_type
end

Class Method Details

.parse(id, body) ⇒ Object



418
419
420
421
# File 'lib/cgialt/fcgi/core.rb', line 418

def self.parse(id, body)
  type, *reserved = *body.unpack(BODY_FORMAT)
  new(id, type)
end