seregazhuk\PinterestBot\Api\Request::getHttpHeaders PHP 메소드

getHttpHeaders() 보호된 메소드

protected getHttpHeaders ( ) : array
리턴 array
    protected function getHttpHeaders()
    {
        $headers = $this->getDefaultHttpHeaders();
        if ($this->csrfToken == Cookies::DEFAULT_TOKEN) {
            $headers[] = 'Cookie: csrftoken=' . Cookies::DEFAULT_TOKEN . ';';
        }
        return $headers;
    }