(self, username: str | bytes, password: str | bytes)
| 137 | yield request |
| 138 | |
| 139 | def _build_auth_header(self, username: str | bytes, password: str | bytes) -> str: |
| 140 | userpass = b":".join((to_bytes(username), to_bytes(password))) |
| 141 | token = b64encode(userpass).decode() |
| 142 | return f"Basic {token}" |
| 143 | |
| 144 | |
| 145 | class NetRCAuth(Auth): |