Returns a dict that is passed through to Parser.parse(), as the `parser_context` keyword argument.
(self, http_request)
| 196 | return authenticators[0].authenticate_header(request) |
| 197 | |
| 198 | def get_parser_context(self, http_request): |
| 199 | """ |
| 200 | Returns a dict that is passed through to Parser.parse(), |
| 201 | as the `parser_context` keyword argument. |
| 202 | """ |
| 203 | # Note: Additionally `request` and `encoding` will also be added |
| 204 | # to the context by the Request object. |
| 205 | return { |
| 206 | 'view': self, |
| 207 | 'args': getattr(self, 'args', ()), |
| 208 | 'kwargs': getattr(self, 'kwargs', {}) |
| 209 | } |
| 210 | |
| 211 | def get_renderer_context(self): |
| 212 | """ |