protected function addHeaders(array $headers)
    {
        foreach ($headers as $key => $val) {
            $normalized = strtolower($key);
            $this->headers[$key] = (array)$val;
            $this->headerNames[$normalized] = $key;
        }
    }
protected function addHeaders(array $headers)
    {
        foreach ($headers as $key => $val) {
            $normalized = strtolower($key);
            $this->headers[$key] = (array)$val;
            $this->headerNames[$normalized] = $key;
        }
    }
protected function addHeaders ( array $ headers ) { foreach ( $ headers as $ key => $ val ) { $ normalized = strtolower ( $ key ) ; $ this -> headers [ $ key ] = ( array ) $ val ; $ this -> headerNames [ $ normalized ] = $ key ; } }
Add an array of headers to the request.

@param array $headers The headers to add.
@return void
Add an array of headers to the request .