Méthode |
Description |
|
decode ( string $recv_buffer, TcpConnection $connection ) : array |
Parse $_POST、$_GET、$_COOKIE. |
|
encode ( string $content, TcpConnection $connection ) : string |
Http encode. |
|
end ( string $msg = '' ) |
End, like call exit in php-fpm. |
|
getMimeTypesFile ( ) : string |
Get mime types. |
|
header ( $content, $replace = true, $http_response_code ) : boolean | void |
设置http头 |
|
headerRemove ( string $name ) : void |
Remove header. |
|
input ( string $recv_buffer, TcpConnection $connection ) : integer |
Check the integrity of the package. |
|
sessionStart ( ) : boolean |
sessionStart |
|
sessionWriteClose ( ) : boolean |
Save session. |
|
setcookie ( string $name, string $value = '', integer $maxage, string $path = '', string $domain = '', boolean $secure = false, boolean $HTTPOnly = false ) : boolean | void |
Set cookie. |
|
tryGcSessions ( ) : void |
Try GC sessions. |
|