Revised the documentation of the DigestAuth class and the calc_response function.

This commit is contained in:
2022-12-06 17:38:58 +08:00
parent e6b4594393
commit b6bfb2eae9
2 changed files with 9 additions and 9 deletions

View File

@ -103,7 +103,7 @@ class DigestAuth:
def login_required(self, view) -> t.Callable:
"""The view decorator for HTTP digest authentication.
:param view:
:param view: The view.
:return: The login-protected view.
"""
@ -217,10 +217,10 @@ class DigestAuth:
raise UnauthorizedException("Invalid nonce")
def make_response_header(self, state: AuthState) -> str:
"""Composes and returns the WWW-Authenticate response header.
"""Composes and returns the ``WWW-Authenticate`` response header.
:param state: The authorization state.
:return: The WWW-Authenticate response header.
:return: The ``WWW-Authenticate`` response header.
"""
def get_opaque() -> t.Optional[str]: