PHP Class PHPDaemon\Servers\FastCGI\Connection

Author: Vasily Zorin ([email protected])
Inheritance: extends PHPDaemon\Network\Connection, implements PHPDaemon\Request\IRequestUpstream
Afficher le fichier Open project: kakserpom/phpdaemon

Méthodes publiques

Свойство Type Description
$timeout

Protected Properties

Свойство Type Description
$content
$header
$highMark initial value of the maximum amout of bytes in buffer
$lowMark initial value of the minimal amout of bytes in buffer
$requestTypes
$requests
$roles

Méthodes publiques

Méthode Description
badRequest ( object $req ) : void Send Bad request
checkChunkedEncCap ( ) : boolean Is this upstream suitable for chunked encoding?
checkSendfileCap ( ) : boolean Is this upstream suitable for sendfile()?
endRequest ( object $req, string $appStatus, string $protoStatus ) : void Handles the output from downstream requests
freeRequest ( object $req ) Frees request
getKeepaliveTimeout ( ) : integer
onRead ( ) : void Called when new data received
requestOut ( object $req, string $out ) : boolean Handles the output from downstream requests
sendChunk ( object $req, string $chunk ) : boolean Sends a chunk

Method Details

badRequest() public méthode

Send Bad request
public badRequest ( object $req ) : void
$req object
Résultat void

checkChunkedEncCap() public méthode

Is this upstream suitable for chunked encoding?
public checkChunkedEncCap ( ) : boolean
Résultat boolean

checkSendfileCap() public méthode

Is this upstream suitable for sendfile()?
public checkSendfileCap ( ) : boolean
Résultat boolean

endRequest() public méthode

Handles the output from downstream requests
public endRequest ( object $req, string $appStatus, string $protoStatus ) : void
$req object
$appStatus string
$protoStatus string
Résultat void

freeRequest() public méthode

Frees request
public freeRequest ( object $req )
$req object

getKeepaliveTimeout() public méthode

public getKeepaliveTimeout ( ) : integer
Résultat integer

onRead() public méthode

Called when new data received
public onRead ( ) : void
Résultat void

requestOut() public méthode

Handles the output from downstream requests
public requestOut ( object $req, string $out ) : boolean
$req object Request
$out string The output
Résultat boolean Success

sendChunk() public méthode

Sends a chunk
public sendChunk ( object $req, string $chunk ) : boolean
$req object Request
$chunk string Data
Résultat boolean

Property Details

$content protected_oe property

protected $content

$header protected_oe property

protected $header

$highMark protected_oe property

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

$lowMark protected_oe property

initial value of the minimal amout of bytes in buffer
protected $lowMark

$requestTypes protected_oe static_oe property

protected static $requestTypes

$requests protected_oe property

protected $requests

$roles protected_oe static_oe property

protected static $roles

$timeout public_oe property

public $timeout