If a request is unauthenticated, determine the WWW-Authenticate header to use for 401 responses, if any.
(self, request)
| 187 | raise exceptions.Throttled(wait) |
| 188 | |
| 189 | def get_authenticate_header(self, request): |
| 190 | """ |
| 191 | If a request is unauthenticated, determine the WWW-Authenticate |
| 192 | header to use for 401 responses, if any. |
| 193 | """ |
| 194 | authenticators = self.get_authenticators() |
| 195 | if authenticators: |
| 196 | return authenticators[0].authenticate_header(request) |
| 197 | |
| 198 | def get_parser_context(self, http_request): |
| 199 | """ |
no test coverage detected