src/Leevel/Http/Response.php
public function withCookies(array $cookies, array $option = []): IResponse
    {
        if ($this->checkFlowControl()) {
            return $this;
        }

        foreach ($cookies as $key => $value) {
            $this->setCookie($key, $value, $option);
        }

        return $this;
    }
public function withCookies(array $cookies, array $option = []): IResponse
    {
        if ($this->checkFlowControl()) {
            return $this;
        }

        foreach ($cookies as $key => $value) {
            $this->setCookie($key, $value, $option);
        }

        return $this;
    }
批量设置 COOKIE.

@param array $cookies
@param array $option

@return $this