protected function applyRequestHeaders(array $curl_options = []): array
	{
		$headers = $this->getHeaders();

		if (empty($headers))
		{
			return $curl_options;
		}

		$set = [];

		foreach ($headers as $name => $value)
		{
			$set[] = $name . ': ' . $this->getHeaderLine($name);
		}

		$curl_options[CURLOPT_HTTPHEADER] = $set;

		return $curl_options;
	}
protected function applyRequestHeaders(array $curl_options = []): array
	{
		$headers = $this->getHeaders();

		if (empty($headers))
		{
			return $curl_options;
		}

		$set = [];

		foreach ($headers as $name => $value)
		{
			$set[] = $name . ': ' . $this->getHeaderLine($name);
		}

		$curl_options[CURLOPT_HTTPHEADER] = $set;

		return $curl_options;
	}
protected function applyRequestHeaders ( array $ curl_options = [ ] ) : array { $ headers = $ this -> getHeaders ( ) ; if ( empty ( $ headers ) ) { return $ curl_options ; } $ set = [ ] ; foreach ( $ headers as $ name => $ value ) { $ set [ ] = $ name . ': ' . $ this -> getHeaderLine ( $ name ) ; } $ curl_options [ CURLOPT_HTTPHEADER ] = $ set ; return $ curl_options ; }
Takes all headers current part of this request and adds them
to the cURL request.

@param array $curl_options

@return array
Takes all headers current part of this request and adds them to the cURL request .