class FCGI::BeginRequestRecord
Constants
- BODY_FORMAT
uint16_t role; (big endian) uint8_t flags; uint8_t reserved;
Attributes
flags[R]
role[R]
Public Class Methods
new(id, role, flags)
click to toggle source
Calls superclass method
FCGI::Record.new
# File lib/fcgi.rb, line 363 def initialize(id, role, flags) super FCGI_BEGIN_REQUEST, id @role = role @flags = flags end
parse(id, body)
click to toggle 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
make_body()
click to toggle source
# File lib/fcgi.rb, line 372 def make_body [@role, @flags, 0, 0, 0, 0, 0].pack(BODY_FORMAT) end