PHP Class Protocol\FCGI\Record\BeginRequest

Inheritance: extends Protocol\FCGI\Record
Show file Open project: lisachenko/protocol-fcgi Class Usage Examples

Protected Properties

Property Type Description
$flags integer flags & FCGI_KEEP_CONN: If zero, the application closes the connection after responding to this request. If not zero, the application does not close the connection after responding to this request; the Web server retains responsibility for the connection.
$reserved1 string Reserved data, 5 bytes maximum
$role integer The currently-defined roles are: FCGI_RESPONDER FCGI_AUTHORIZER FCGI_FILTER

Public Methods

Method Description
__construct ( $role = FCGI::UNKNOWN_ROLE, $flags, $reserved = '' )
getFlags ( ) : integer Returns the flags
getRole ( ) : integer Returns the role

Protected Methods

Method Description
packPayload ( ) : string Implementation of packing the payload
unpackPayload ( Record $self, string $data ) : Record Method to unpack the payload for the record

Method Details

__construct() public method

public __construct ( $role = FCGI::UNKNOWN_ROLE, $flags, $reserved = '' )

getFlags() public method

The flags component contains a bit that controls connection shutdown. flags & FCGI_KEEP_CONN: If zero, the application closes the connection after responding to this request. If not zero, the application does not close the connection after responding to this request; the Web server retains responsibility for the connection.
public getFlags ( ) : integer
return integer

getRole() public method

The role component sets the role the Web server expects the application to play. The currently-defined roles are: FCGI_RESPONDER FCGI_AUTHORIZER FCGI_FILTER
public getRole ( ) : integer
return integer

packPayload() protected method

Implementation of packing the payload
protected packPayload ( ) : string
return string

unpackPayload() protected static method

Method to unpack the payload for the record
protected static unpackPayload ( Record $self, string $data ) : Record
$self Protocol\FCGI\Record Instance of current frame
$data string Binary data
return Protocol\FCGI\Record

Property Details

$flags protected property

flags & FCGI_KEEP_CONN: If zero, the application closes the connection after responding to this request. If not zero, the application does not close the connection after responding to this request; the Web server retains responsibility for the connection.
protected int $flags
return integer

$reserved1 protected property

Reserved data, 5 bytes maximum
protected string $reserved1
return string

$role protected property

The currently-defined roles are: FCGI_RESPONDER FCGI_AUTHORIZER FCGI_FILTER
protected int $role
return integer