public function addHeaderToRequest($header, $value)
    {
        $this->request = $this->request->withHeader($header, $value);
    }
public function addHeaderToRequest($header, $value)
    {
        $this->request = $this->request->withHeader($header, $value);
    }
public function addHeaderToRequest ( $ header , $ value ) { $ this -> request = $ this -> request -> withHeader ( $ header , $ value ) ; }
Add a header to the request.

@param string $header
@param string|string[] $value
Add a header to the request .