lithium\net\http\Response::digest()

public method

Looks at the WWW-Authenticate. Will return array of key/values if digest.

Parameters

  • string $header

    value of WWW-Authenticate

Returns

array

Source

	public function digest() {
		if (empty($this->headers['WWW-Authenticate'])) {
			return [];
		}
		$auth = $this->_classes['auth'];
		return $auth::decode($this->headers['WWW-Authenticate']);
	}