public function set(
        string $name,
        string $value = null,
        int $lifetime = null,
        string $path = null,
        string $domain = null,
        bool $secure = null,
        bool $httpOnly = true
    ) {
        if (is_null($domain)) {
            //Let's resolve domain via config
            $domain = $this->domain;
        }

        if (is_null($secure)) {
            $secure = $this->secure;
        }

        return $this->schedule(
            new Cookie($name, $value, $lifetime, $path, $domain, $secure, $httpOnly)
        );
    }