MCPcopy Index your code
hub / github.com/encode/django-rest-framework / get_parser_context

Method get_parser_context

rest_framework/views.py:198–209  ·  view source on GitHub ↗

Returns a dict that is passed through to Parser.parse(), as the `parser_context` keyword argument.

(self, http_request)

Source from the content-addressed store, hash-verified

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 """

Callers 1

initialize_requestMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected