PHP Класс Protocol\FCGI\Record\EndRequest

Наследование: extends Protocol\FCGI\Record
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$appStatus integer The appStatus component is an application-level status code. Each role documents its usage of appStatus.
$protocolStatus integer The possible protocolStatus values are: FCGI_REQUEST_COMPLETE: normal end of request. FCGI_CANT_MPX_CONN: rejecting a new request. This happens when a Web server sends concurrent requests over one connection to an application that is designed to process one request at a time per connection. FCGI_OVERLOADED: rejecting a new request. This happens when the application runs out of some resource, e.g. database connections. FCGI_UNKNOWN_ROLE: rejecting a new request. This happens when the Web server has specified a role that is unknown to the application.
$reserved1 string Reserved data, 3 bytes maximum

Открытые методы

Метод Описание
__construct ( $protocolStatus = FCGI::REQUEST_COMPLETE, $appStatus, $reserved = '' )
getAppStatus ( ) : integer Returns app status
getProtocolStatus ( ) : integer Returns the protocol status

Защищенные методы

Метод Описание
packPayload ( ) : string Implementation of packing the payload
unpackPayload ( Record $self, string $data ) : Record Method to unpack the payload for the record

Описание методов

__construct() публичный Метод

public __construct ( $protocolStatus = FCGI::REQUEST_COMPLETE, $appStatus, $reserved = '' )

getAppStatus() публичный Метод

The appStatus component is an application-level status code. Each role documents its usage of appStatus.
public getAppStatus ( ) : integer
Результат integer

getProtocolStatus() публичный Метод

The possible protocolStatus values are: FCGI_REQUEST_COMPLETE: normal end of request. FCGI_CANT_MPX_CONN: rejecting a new request. This happens when a Web server sends concurrent requests over one connection to an application that is designed to process one request at a time per connection. FCGI_OVERLOADED: rejecting a new request. This happens when the application runs out of some resource, e.g. database connections. FCGI_UNKNOWN_ROLE: rejecting a new request. This happens when the Web server has specified a role that is unknown to the application.
public getProtocolStatus ( ) : integer
Результат integer

packPayload() защищенный Метод

Implementation of packing the payload
protected packPayload ( ) : string
Результат string

unpackPayload() защищенный статический Метод

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
Результат Protocol\FCGI\Record

Описание свойств

$appStatus защищенное свойство

The appStatus component is an application-level status code. Each role documents its usage of appStatus.
protected int $appStatus
Результат integer

$protocolStatus защищенное свойство

The possible protocolStatus values are: FCGI_REQUEST_COMPLETE: normal end of request. FCGI_CANT_MPX_CONN: rejecting a new request. This happens when a Web server sends concurrent requests over one connection to an application that is designed to process one request at a time per connection. FCGI_OVERLOADED: rejecting a new request. This happens when the application runs out of some resource, e.g. database connections. FCGI_UNKNOWN_ROLE: rejecting a new request. This happens when the Web server has specified a role that is unknown to the application.
protected int $protocolStatus
Результат integer

$reserved1 защищенное свойство

Reserved data, 3 bytes maximum
protected string $reserved1
Результат string