lithium\net\http\Response::digest()
Looks at the WWW-Authenticate. Will return array of key/values if digest.
Parameters
-
string
$header
value of WWW-Authenticate
Returns
arraySource
public function digest() {
if (empty($this->headers['WWW-Authenticate'])) {
return [];
}
$auth = $this->_classes['auth'];
return $auth::decode($this->headers['WWW-Authenticate']);
}