PHP Класс PHPDaemon\Servers\HTTP\Connection

Автор: Vasily Zorin ([email protected])
Наследование: extends PHPDaemon\Network\Connection, implements PHPDaemon\Request\IRequestUpstream
Показать файл Открыть проект

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

Свойство Тип Описание
$EOL
$currentHeader
$freedBeforeProcessing
$initialHighMark initial value of the maximum amout of bytes in buffer
$initialLowMark
$keepaliveTimer
$policyReqNotFound
$req
$timeout

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

Метод Описание
badRequest ( $req ) : void Send Bad request
checkChunkedEncCap ( ) : boolean Check if Chunked encoding is supported here.
checkSendfileCap ( ) : boolean Check if Sendfile is supported here.
endRequest ( $req, $appStatus, $protoStatus ) : void End request
freeRequest ( $req ) : void Frees this request
getKeepaliveTimeout ( ) : integer
onFinish ( ) : void Called when connection is finished
requestOut ( object $req, string $s ) : boolean Handles the output from downstream requests.

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

Метод Описание
httpProcessHeaders ( ) : boolean Process HTTP headers
httpReadFirstline ( ) : boolean | null Read first line of HTTP request
httpReadHeaders ( ) : boolean | null Read headers line-by-line
newRequest ( ) : stdClass Creates new Request object
onRead ( ) : void onRead

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

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

Send Bad request
public badRequest ( $req ) : void
Результат void

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

Check if Chunked encoding is supported here.
public checkChunkedEncCap ( ) : boolean
Результат boolean Succes

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

Check if Sendfile is supported here.
public checkSendfileCap ( ) : boolean
Результат boolean Succes

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

End request
public endRequest ( $req, $appStatus, $protoStatus ) : void
Результат void

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

Frees this request
public freeRequest ( $req ) : void
Результат void

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

public getKeepaliveTimeout ( ) : integer
Результат integer

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

Process HTTP headers
protected httpProcessHeaders ( ) : boolean
Результат boolean Success

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

Read first line of HTTP request
protected httpReadFirstline ( ) : boolean | null
Результат boolean | null Success

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

Read headers line-by-line
protected httpReadHeaders ( ) : boolean | null
Результат boolean | null Success

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

Creates new Request object
protected newRequest ( ) : stdClass
Результат stdClass

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

Called when connection is finished
public onFinish ( ) : void
Результат void

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

onRead
protected onRead ( ) : void
Результат void

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

Handles the output from downstream requests.
public requestOut ( object $req, string $s ) : boolean
$req object \PHPDaemon\Request\Generic.
$s string The output.
Результат boolean Success

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

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

protected $EOL

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

protected $currentHeader

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

protected $freedBeforeProcessing

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

initial value of the maximum amout of bytes in buffer
protected $initialHighMark

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

protected $initialLowMark

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

protected $keepaliveTimer

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

protected $policyReqNotFound

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

protected $req

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

protected $timeout