src/Http/Response.php
function getCookieConfig($key = null)
    {
        $default = array('path' => '/', 'domain' => '', 'secure' => false, 'httponly' => true);
        if ($key && isset($default[$key])) {
            if (isset($this->cookie_config[$key])) {
                return $this->cookie_config[$key];
            }

            return $default[$key];
        }

        return null;
    }
function getCookieConfig($key = null)
    {
        $default = array('path' => '/', 'domain' => '', 'secure' => false, 'httponly' => true);
        if ($key && isset($default[$key])) {
            if (isset($this->cookie_config[$key])) {
                return $this->cookie_config[$key];
            }

            return $default[$key];
        }

        return null;
    }
获取cookie参数默认值

@param null $key
@return array|mixed