프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$htr | State | ||
$hvaltr | Replacement pairs for processing some header values in parse_str() | ||
$keepalive | Keepalive? | ||
$responseLength | Current response length |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$codes | Status codes | ||
$contentLength | Content length from header() method | ||
$contype | Content type parameters | ||
$cookieNum | Number of outgoing cookie-headers | ||
$frozenInput | Frozen input? | ||
$headers | Outgoing headers | ||
$headers_sent | Headers sent? | ||
$headers_sent_file | File name where output started in the file and line variables | ||
$headers_sent_line | Line number where output started in the file and line variables | ||
$sendfp | File pointer to send output (X-Sendfile) |
메소드 | 설명 | |
---|---|---|
checkIfReady ( ) : boolean | Called to check if Request is ready | |
chunked ( ) : void | Use chunked encoding | |
combinedOut ( string $s ) : boolean | Outputs data with headers (split by \r\n\r\n) | |
ensureSentHeaders ( ) : boolean | Ensure that headers are sent | |
firstDeferredEventUsed ( ) : void | Called when first deferred event used | |
getUploadMaxSize ( ) : integer | Upload maximum file size | |
getUploadTempDir ( ) : string | Returns path to directory of temporary upload files | |
header ( string $s, boolean $replace = true, integer $code = false ) : boolean | Send the header | |
headersList ( ) : array | Return current list of headers | |
headersSent ( &$file, &$line ) : boolean | Checks if headers have been sent | |
isUploadedFile ( string $path ) : boolean | Tells whether the file was uploaded via HTTP POST | |
moveUploadedFile ( string $filename, string $dest ) : boolean | Moves an uploaded file to a new location | |
onParsedParams ( ) : void | Called when request's headers parsed | |
onSleep ( ) : void | Called when the request starts sleep | |
onUploadFileChunk ( |
Called when chunk of incoming file has arrived | |
onUploadFileStart ( |
Called when file upload started | |
onWakeup ( ) : void | Called when the request wakes up | |
out ( string $s, boolean $flush = true ) : boolean | Output some data | |
parseSize ( string $value ) : integer | Converts human-readable representation of size to number of bytes | |
parseStr ( string $s, &$var, boolean $header = false ) : void | Replacement for default parse_str(), it supoorts UCS-2 like this: %uXXXX | |
postPrepare ( ) : void | Prepares the request body | |
readBodyFile ( ) : boolean | Read request body from the file given in REQUEST_BODY_FILE parameter | |
removeHeader ( string $s ) : void | Removes a header | |
sendfile ( string $path, callable $cb, integer $pri = EIO_PRI_DEFAULT ) : boolean | Output whole contents of file | |
setcookie ( string $name, string $value = '', integer $maxage, string $path = '', string $domain = '', boolean $secure = false, boolean $HTTPOnly = false ) : void | Set the cookie | |
status ( integer $code = 200 ) : boolean | Send HTTP-status |
메소드 | 설명 | |
---|---|---|
freezeInput ( ) : void | Freeze input | |
getCookieStr ( string $name ) : string | Get cookie by name | |
parseParams ( ) : void | Parses GET-query string and other request's headers | |
postFinishHandler ( callable $cb = null ) : void | Called after request finish | |
preinit ( object $req ) : void | Preparing before init | |
unfreezeInput ( ) : void | Unfreeze input |
public checkIfReady ( ) : boolean | ||
리턴 | boolean | Ready? |
public combinedOut ( string $s ) : boolean | ||
$s | string | Data |
리턴 | boolean | Success |
public ensureSentHeaders ( ) : boolean | ||
리턴 | boolean | Were already sent? |
public firstDeferredEventUsed ( ) : void | ||
리턴 | void |
protected getCookieStr ( string $name ) : string | ||
$name | string | Name of cookie |
리턴 | string | Contents |
public getUploadTempDir ( ) : string | ||
리턴 | string |
public headersSent ( &$file, &$line ) : boolean | ||
리턴 | boolean | Success |
public isUploadedFile ( string $path ) : boolean | ||
$path | string | The filename being checked |
리턴 | boolean | Whether if this is uploaded file |
public onParsedParams ( ) : void | ||
리턴 | void |
public onUploadFileChunk ( |
||
$in | Input buffer | |
$last | boolean | Last? |
리턴 | void |
public onUploadFileStart ( |
||
$in | Input buffer | |
리턴 | void |
protected parseParams ( ) : void | ||
리턴 | void |
protected postFinishHandler ( callable $cb = null ) : void | ||
$cb | callable | Callback |
리턴 | void |
public readBodyFile ( ) : boolean | ||
리턴 | boolean | Success |
public removeHeader ( string $s ) : void | ||
$s | string | Header name. Example: 'Location' |
리턴 | void |
public setcookie ( string $name, string $value = '', integer $maxage, string $path = '', string $domain = '', boolean $secure = false, boolean $HTTPOnly = false ) : void | ||
$name | string | Name of cookie |
$value | string | Value |
$maxage | integer | Optional. Max-Age. Default is 0 |
$path | string | Optional. Path. Default is empty string |
$domain | string | Optional. Domain. Default is empty string |
$secure | boolean | Optional. Secure. Default is false |
$HTTPOnly | boolean | Optional. HTTPOnly. Default is false |
리턴 | void |
protected $headers_sent_file |
protected $headers_sent_line |
public static $hvaltr |