uint8_t protocol_version; uint8_t record_type; uint16_t #request_id; (big endian) uint16_t content_length; (big endian) uint8_t padding_length; uint8_t reserved;
# File lib/fcgi.rb, line 329 def management_record? @request_id == FCGI_NULL_REQUEST_ID end
# File lib/fcgi.rb, line 333 def serialize body = make_body() padlen = body.length % 8 header = make_header(body.length, padlen) header + body + "\0000" * padlen end
# File lib/fcgi.rb, line 322 def version ::FCGI::ProtocolVersion end
# File lib/fcgi.rb, line 313 def self::class_for(type) RECORD_CLASS[type] end
# File lib/fcgi.rb, line 317 def initialize(type, reqid) @type = type @request_id = reqid end
# File lib/fcgi.rb, line 309 def self::parse_header(buf) return *buf.unpack(HEADER_FORMAT) end