public function appendHeadersTo(ClientContract $client): void
    {
        $this->authenticator->authenticate($client);

        $client->withHeader('Cookie', $this->authenticator->token());
    }
public function appendHeadersTo(ClientContract $client): void
    {
        $this->authenticator->authenticate($client);

        $client->withHeader('Cookie', $this->authenticator->token());
    }
public function appendHeadersTo ( ClientContract $ client ) : void { $ this -> authenticator -> authenticate ( $ client ) ; $ client -> withHeader ( 'Cookie' , $ this -> authenticator -> token ( ) ) ; }
Append authorization headers to REST client.

@param \Cog\Contracts\YouTrack\Rest\Client\Client $client
@return void

@throws \Cog\Contracts\YouTrack\Rest\Authenticator\Exceptions\AuthenticationException
Append authorization headers to REST client .