PHP 클래스 PHPDaemon\Servers\HTTP\Connection

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

보호된 프로퍼티들

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