src/Control/Middleware/CanonicalURLMiddleware.php
protected function hasBasicAuthPrompt(HTTPResponse $response = null)
    {
        if (!$response) {
            return false;
        }
        return ($response->getStatusCode() === 401 && $response->getHeader('WWW-Authenticate'));
    }
protected function hasBasicAuthPrompt(HTTPResponse $response = null)
    {
        if (!$response) {
            return false;
        }
        return ($response->getStatusCode() === 401 && $response->getHeader('WWW-Authenticate'));
    }
protected function hasBasicAuthPrompt ( HTTPResponse $ response = null ) { if ( ! $ response ) { return false ; } return ( $ response -> getStatusCode ( ) === 401 && $ response -> getHeader ( 'WWW-Authenticate' ) ) ; }
Determine whether the executed middlewares have added a basic authentication prompt

@param HTTPResponse $response
@return bool
Determine whether the executed middlewares have added a basic authentication prompt