Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. UnauthorizedHttpException.php

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\Exception

Code

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);
}
RSS feed
Powered by Drupal