PHP Class PHPDaemon\Servers\FastCGI\Connection

Author: Vasily Zorin ([email protected])
Inheritance: extends PHPDaemon\Network\Connection, implements PHPDaemon\Request\IRequestUpstream
ファイルを表示 Open project: kakserpom/phpdaemon

Public Properties

Property Type Description
$timeout

Protected Properties

Property 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

Public Methods

Method 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 method

Send Bad request
public badRequest ( object $req ) : void
$req object
return void

checkChunkedEncCap() public method

Is this upstream suitable for chunked encoding?
public checkChunkedEncCap ( ) : boolean
return boolean

checkSendfileCap() public method

Is this upstream suitable for sendfile()?
public checkSendfileCap ( ) : boolean
return boolean

endRequest() public method

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

freeRequest() public method

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

getKeepaliveTimeout() public method

public getKeepaliveTimeout ( ) : integer
return integer

onRead() public method

Called when new data received
public onRead ( ) : void
return void

requestOut() public method

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

sendChunk() public method

Sends a chunk
public sendChunk ( object $req, string $chunk ) : boolean
$req object Request
$chunk string Data
return 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