src/Http/Response.php
function setCookie($name, $value = '', $expire = 0)
    {
        $this->cookie[$name] = array(
            $name,
            $value,
            $expire,
            $this->getCookieConfig('path'),
            $this->getCookieConfig('domain'),
            $this->getCookieConfig('secure'),
            $this->getCookieConfig('httponly')
        );

        return $this;
    }
function setCookie($name, $value = '', $expire = 0)
    {
        $this->cookie[$name] = array(
            $name,
            $value,
            $expire,
            $this->getCookieConfig('path'),
            $this->getCookieConfig('domain'),
            $this->getCookieConfig('secure'),
            $this->getCookieConfig('httponly')
        );

        return $this;
    }
添加cookie

@param mixed $name
@param string $value
@param int $expire
@return $this