PHP Class Protocol\FCGI\Record\BeginRequest

Inheritance: extends Protocol\FCGI\Record
Afficher le fichier Open project: lisachenko/protocol-fcgi Class Usage Examples

Protected Properties

Свойство 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

Méthodes publiques

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

Méthodes protégées

Méthode 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 méthode

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

getFlags() public méthode

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
Résultat integer

getRole() public méthode

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
Résultat integer

packPayload() protected méthode

Implementation of packing the payload
protected packPayload ( ) : string
Résultat string

unpackPayload() protected static méthode

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
Résultat Protocol\FCGI\Record

Property Details

$flags protected_oe 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
Résultat integer

$reserved1 protected_oe property

Reserved data, 5 bytes maximum
protected string $reserved1
Résultat string

$role protected_oe property

The currently-defined roles are: FCGI_RESPONDER FCGI_AUTHORIZER FCGI_FILTER
protected int $role
Résultat integer