Download lib/python3.12/site-packages/fastapi/security/utils.py from parallel-reasoner/env-full: direct link, hf CLI and curl.
- Browser
- Download file 293 Bytes
-
https://huggingface.co/parallel-reasoner/env-full/resolve/9f0e63b2e46f3a372dd6bc7efd242955efef55b6/lib/python3.12/site-packages/fastapi/security/utils.py
- Command line
-
hf download hf://parallel-reasoner/env-full@9f0e63b2e46f3a372dd6bc7efd242955efef55b6/lib/python3.12/site-packages/fastapi/security/utils.py
-
curl -L -o utils.py https://huggingface.co/parallel-reasoner/env-full/resolve/9f0e63b2e46f3a372dd6bc7efd242955efef55b6/lib/python3.12/site-packages/fastapi/security/utils.py
293 Bytes
| from typing import Optional, Tuple | |
| def get_authorization_scheme_param( | |
| authorization_header_value: Optional[str], | |
| ) -> Tuple[str, str]: | |
| if not authorization_header_value: | |
| return "", "" | |
| scheme, _, param = authorization_header_value.partition(" ") | |
| return scheme, param | |