class FCGI::BeginRequestRecord
Constants
- BODY_FORMAT
-
uint16_t role; (big endian) uint8_t flags; uint8_t reserved;
Attributes
Public Class Methods
Source
# File lib/fcgi.rb, line 363 def initialize(id, role, flags) super FCGI_BEGIN_REQUEST, id @role = role @flags = flags end
Calls superclass method
FCGI::Record::new
Source
# File lib/fcgi.rb, line 358 def BeginRequestRecord.parse(id, body) role, flags, *reserved = *body.unpack(BODY_FORMAT) new(id, role, flags) end
Public Instance Methods
Source
# File lib/fcgi.rb, line 372 def make_body [@role, @flags, 0, 0, 0, 0, 0].pack(BODY_FORMAT) end