$methods
$methods : array
The supported HTTP methods
http protocol
input(string $recv_buffer, \Workerman\Connection\TcpConnection $connection) : integer
Check the integrity of the package.
string | $recv_buffer | |
\Workerman\Connection\TcpConnection | $connection |
decode(string $recv_buffer, \Workerman\Connection\TcpConnection $connection) : array
Parse $_POST、$_GET、$_COOKIE.
string | $recv_buffer | |
\Workerman\Connection\TcpConnection | $connection |
encode(string $content, \Workerman\Connection\TcpConnection $connection) : string
Http encode.
string | $content | |
\Workerman\Connection\TcpConnection | $connection |
setcookie(string $name, string $value = '', integer $maxage, string $path = '', string $domain = '', boolean $secure = false, boolean $HTTPOnly = false) : boolean|void
Set cookie.
string | $name | |
string | $value | |
integer | $maxage | |
string | $path | |
string | $domain | |
boolean | $secure | |
boolean | $HTTPOnly |