Class: FCGI::BeginRequestRecord

### Home Classes Methods

### In Files

- lib/fcgi.rb

### Parent

FCGI::Record

### Methods

- ::new
- ::parse
- #make_body

### Class/Module Index

Quicksearch

- FCGI
- FCGI::AbortRequestRecord
- FCGI::BeginRequestRecord
- FCGI::DataRecord
- FCGI::EndRequestRecord
- FCGI::FastCGISocket
- FCGI::GenericDataRecord
- FCGI::GetValuesRecord
- FCGI::ParamsRecord
- FCGI::Record
- FCGI::RecordBuffer
- FCGI::Request
- FCGI::Server
- FCGI::StdinDataRecord
- FCGI::StdoutDataRecord
- FCGI::UnknownTypeRecord
- FCGI::ValuesRecord

No matching classes.

# 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

    # File lib/fcgi.rb, line 358
    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 353
    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 367
    def make_body
      [@role, @flags, 0, 0, 0, 0, 0].pack(BODY_FORMAT)
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.