프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$cookie | _COOKIE | ||
$get | _GET | ||
$hvaltr | Replacement pairs for processing some header values in parse_str() | ||
$server | _SERVER |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$EOL | |||
$contentLength | Content length from header() method | ||
$cookieNum | Number of outgoing cookie-headers | ||
$currentHeader | |||
$extensions | |||
$extensionsCleanRegex | |||
$handshaked | |||
$headers | |||
$headers_sent | |||
$policyReqNotFound | |||
$route | |||
$running | Is this connection running right now? | ||
$timeout | Timeout | ||
$writeReady |
메소드 | 설명 | |
---|---|---|
badRequest ( ) : void | Send Bad request | |
getFrameType ( $type ) : integer | Get real frame type identificator | |
gracefulShutdown ( ) : boolean | Called when the worker is going to shutdown. | |
handleException ( Exception $e ) : boolean | Uncaught exception handler | |
handshake ( ) : boolean | Called when we're going to handshake. | |
header ( string $s, boolean $replace = true, boolean $code = false ) : boolean | Send the header | |
onFinish ( ) : void | Event of Connection. | |
onFrame ( string $data, string $type ) : boolean | Called when new frame received. | |
onInheritance ( $conn ) | ||
onInheritanceFromRequest ( object $req ) : void | Called when connection is inherited from HTTP request | |
onReady ( ) : void | Called when the stream is handshaked (at low-level), and peer is ready to recv. data | |
sendFrame ( string $data, string $type = null, callable $cb = null ) : boolean | Sends a frame. | |
status ( integer $code = 200 ) : boolean | Send HTTP-status |
메소드 | 설명 | |
---|---|---|
handshakeAfter ( ) | ||
httpProcessHeaders ( ) : boolean | Process headers | |
httpReadFirstline ( ) : boolean | null | Read first line of HTTP request | |
httpReadHeaders ( ) : boolean | null | Read headers line-by-line | |
onRead ( ) : void | Called when new data received. | |
switchToProtocol ( $proto ) |
public getFrameType ( $type ) : integer | ||
$type | ||
리턴 | integer |
public gracefulShutdown ( ) : boolean | ||
리턴 | boolean | Ready to shutdown ? |
public handleException ( Exception $e ) : boolean | ||
$e | Exception | |
리턴 | boolean | Handled? |
protected httpReadFirstline ( ) : boolean | null | ||
리턴 | boolean | null | Success |
protected httpReadHeaders ( ) : boolean | null | ||
리턴 | boolean | null | Success |
public onInheritanceFromRequest ( object $req ) : void | ||
$req | object | |
리턴 | void |
public static $hvaltr |