PHP 클래스 PHPDaemon\Servers\FastCGI\Connection

저자: Vasily Zorin ([email protected])
상속: extends PHPDaemon\Network\Connection, implements PHPDaemon\Request\IRequestUpstream
파일 보기 프로젝트 열기: kakserpom/phpdaemon

공개 프로퍼티들

프로퍼티 타입 설명
$timeout

보호된 프로퍼티들

프로퍼티 타입 설명
$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

공개 메소드들

메소드 설명
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

메소드 상세

badRequest() 공개 메소드

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

checkChunkedEncCap() 공개 메소드

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

checkSendfileCap() 공개 메소드

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

endRequest() 공개 메소드

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

freeRequest() 공개 메소드

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

getKeepaliveTimeout() 공개 메소드

public getKeepaliveTimeout ( ) : integer
리턴 integer

onRead() 공개 메소드

Called when new data received
public onRead ( ) : void
리턴 void

requestOut() 공개 메소드

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

sendChunk() 공개 메소드

Sends a chunk
public sendChunk ( object $req, string $chunk ) : boolean
$req object Request
$chunk string Data
리턴 boolean

프로퍼티 상세

$content 보호되어 있는 프로퍼티

protected $content

$header 보호되어 있는 프로퍼티

protected $header

$highMark 보호되어 있는 프로퍼티

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

$lowMark 보호되어 있는 프로퍼티

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

$requestTypes 보호되어 있는 정적으로 프로퍼티

protected static $requestTypes

$requests 보호되어 있는 프로퍼티

protected $requests

$roles 보호되어 있는 정적으로 프로퍼티

protected static $roles

$timeout 공개적으로 프로퍼티

public $timeout