(
self,
environ: WSGIEnvironment | None = None,
scope: dict[str, t.Any] | None = None,
)
| 323 | self.www_authenticate = www_authenticate |
| 324 | |
| 325 | def get_headers( |
| 326 | self, |
| 327 | environ: WSGIEnvironment | None = None, |
| 328 | scope: dict[str, t.Any] | None = None, |
| 329 | ) -> list[tuple[str, str]]: |
| 330 | headers = super().get_headers(environ, scope) |
| 331 | if self.www_authenticate: |
| 332 | headers.extend(("WWW-Authenticate", str(x)) for x in self.www_authenticate) |
| 333 | return headers |
| 334 | |
| 335 | |
| 336 | class Forbidden(HTTPException): |