Coverage for fastapi/security/utils.py: 100%
6 statements
« prev ^ index » next coverage.py v7.6.1, created at 2024-08-08 03:53 +0000
« prev ^ index » next coverage.py v7.6.1, created at 2024-08-08 03:53 +0000
1from typing import Optional, Tuple 1abcde
4def get_authorization_scheme_param( 1abcde
5 authorization_header_value: Optional[str],
6) -> Tuple[str, str]:
7 if not authorization_header_value: 1abcde
8 return "", "" 1abcde
9 scheme, _, param = authorization_header_value.partition(" ") 1abcde
10 return scheme, param 1abcde