public function setHeader($header, $value)
    {
        if (is_array($value)) {
            $value = implode(';', $value);
        }

        $this->headers[$header] = $value;
    }
public function setHeader($header, $value)
    {
        if (is_array($value)) {
            $value = implode(';', $value);
        }

        $this->headers[$header] = $value;
    }
public function setHeader ( $ header , $ value ) { if ( is_array ( $ value ) ) { $ value = implode ( ';' , $ value ) ; } $ this -> headers [ $ header ] = $ value ; }
Set request header.

@param string $header Header to be set
@param mixed $value
Set request header .