source/Http/CurlTransport.php
private function addHeaders($Resource, $headers) {
        $httpHeaders = array();
        foreach ($headers as $header => $value) {
            $httpHeaders[] = $header . ': ' . $value;
        }
        curl_setopt($Resource, CURLOPT_HTTPHEADER, $httpHeaders);
    }
private function addHeaders($Resource, $headers) {
        $httpHeaders = array();
        foreach ($headers as $header => $value) {
            $httpHeaders[] = $header . ': ' . $value;
        }
        curl_setopt($Resource, CURLOPT_HTTPHEADER, $httpHeaders);
    }
private function addHeaders ( $ Resource , $ headers ) { $ httpHeaders = array ( ) ; foreach ( $ headers as $ header => $ value ) { $ httpHeaders [ ] = $ header . ': ' . $ value ; } curl_setopt ( $ Resource , CURLOPT_HTTPHEADER , $ httpHeaders ) ; }
Add http headers method
@param resource $Resource libcurl handler
@param array $headers assotiative array of http headers and values
Add http headers method