function UnauthorizedHttpException::__construct
Parameters
string $challenge WWW-Authenticate challenge string:
Overrides HttpException::__construct
2 calls to UnauthorizedHttpException::__construct()
- CacheableUnauthorizedHttpException::__construct in core/
lib/ Drupal/ Core/ Http/ Exception/ CacheableUnauthorizedHttpException.php - CacheableUnauthorizedHttpException::__construct in core/
lib/ Drupal/ Core/ Http/ Exception/ CacheableUnauthorizedHttpException.php
1 method overrides UnauthorizedHttpException::__construct()
- CacheableUnauthorizedHttpException::__construct in core/
lib/ Drupal/ Core/ Http/ Exception/ CacheableUnauthorizedHttpException.php
File
-
vendor/
symfony/ http-kernel/ Exception/ UnauthorizedHttpException.php, line 22
Class
- UnauthorizedHttpException
- @author Ben Ramsey <ben@benramsey.com>
Namespace
Symfony\Component\HttpKernel\ExceptionCode
public function __construct(string $challenge, string $message = '', ?\Throwable $previous = null, int $code = 0, array $headers = []) {
$headers['WWW-Authenticate'] = $challenge;
parent::__construct(401, $message, $previous, $headers, $code);
}