(self, username: str | bytes, password: str | bytes)
| 167 | yield request |
| 168 | |
| 169 | def _build_auth_header(self, username: str | bytes, password: str | bytes) -> str: |
| 170 | userpass = b":".join((to_bytes(username), to_bytes(password))) |
| 171 | token = b64encode(userpass).decode() |
| 172 | return f"Basic {token}" |
| 173 | |
| 174 | |
| 175 | class DigestAuth(Auth): |