/** * @param IHttpHeaders $headers * @param array $server */ public function writeCommonAuthHeaders(IHttpHeaders $headers, array $server) { $auth = $this->findAuthHeader($server); if ($this->authIsValid($auth)) { $headers->set('authorization', $auth); } }
/** * @param IHttpHeaders $headers * @param $header */ public function setHeader(IHttpHeaders $headers, $header) { $headers->set('authorization', $header); }