public function setHeader($header, $value)
    {
        if (is_array($value)) {
            throw new \Exception('Could not set the header: '.$header);
        }
        $this->headers[$header] = $value;
    }
public function setHeader($header, $value)
    {
        if (is_array($value)) {
            throw new \Exception('Could not set the header: '.$header);
        }
        $this->headers[$header] = $value;
    }
public function setHeader ( $ header , $ value ) { if ( is_array ( $ value ) ) { throw new \ Exception ( 'Could not set the header: ' . $ header ) ; } $ this -> headers [ $ header ] = $ value ; }
Set a http header for the request

@param string $header
@param string $value
Set a http header for the request