sessionName() sessionName(string|null $name = null) : string Get or set session name. Parameters string|null $name Returns string —
requestClass() requestClass(string|null $class_name = null) : string Get or set the request class name. Parameters string|null $class_name Returns string —
enableCache() enableCache(mixed $value) : mixed Enable or disable Cache. Parameters mixed $value Returns mixed —
input() input(string $recv_buffer, \Workerman\Connection\TcpConnection $connection) : int Check the integrity of the package. Parameters string $recv_buffer \Workerman\Connection\TcpConnection $connection Returns int —
decode() decode(string $recv_buffer, \Workerman\Connection\TcpConnection $connection) : \Workerman\Protocols\Http\Request Http decode. Parameters string $recv_buffer \Workerman\Connection\TcpConnection $connection Returns \Workerman\Protocols\Http\Request —
encode() encode(string|\Workerman\Protocols\Http\Response $response, \Workerman\Connection\TcpConnection $connection) : string Http encode. Parameters string|\Workerman\Protocols\Http\Response $response \Workerman\Connection\TcpConnection $connection Returns string —
uploadTmpDir() uploadTmpDir(mixed $dir = null) : bool|string Set or get uploadTmpDir. Parameters mixed $dir Returns bool|string —
sendStream() sendStream(\Workerman\Connection\TcpConnection $connection, resource $handler, int $offset, int $length) : mixed Send remainder of a stream to client. Parameters \Workerman\Connection\TcpConnection $connection resource $handler int $offset int $length Returns mixed —