src/Request.php
private function setHeaders(array $headers)
    {
        if ( ! empty($headers))
        {
            $this->setOption(CURLOPT_HTTPHEADER, $this->optionParser->parseHeaders($headers));
        }
        else
        {
            $this->unsetOption(CURLOPT_HTTPHEADER);
        }
    }
private function setHeaders(array $headers)
    {
        if ( ! empty($headers))
        {
            $this->setOption(CURLOPT_HTTPHEADER, $this->optionParser->parseHeaders($headers));
        }
        else
        {
            $this->unsetOption(CURLOPT_HTTPHEADER);
        }
    }
private function setHeaders ( array $ headers ) { if ( ! empty ( $ headers ) ) { $ this -> setOption ( CURLOPT_HTTPHEADER , $ this -> optionParser -> parseHeaders ( $ headers ) ) ; } else { $ this -> unsetOption ( CURLOPT_HTTPHEADER ) ; } }
Set request headers

@param array $headers

@return void
Set request headers