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

Method initialize_request

rest_framework/views.py:391–403  ·  view source on GitHub ↗

Returns the initial request object.

(self, request, *args, **kwargs)

Source from the content-addressed store, hash-verified

389 # Dispatch methods
390
391 def initialize_request(self, request, *args, **kwargs):
392 """
393 Returns the initial request object.
394 """
395 parser_context = self.get_parser_context(request)
396
397 return Request(
398 request,
399 parsers=self.get_parsers(),
400 authenticators=self.get_authenticators(),
401 negotiator=self.get_content_negotiator(),
402 parser_context=parser_context
403 )
404
405 def initial(self, request, *args, **kwargs):
406 """

Calls 5

get_parser_contextMethod · 0.95
get_parsersMethod · 0.95
get_authenticatorsMethod · 0.95
RequestClass · 0.90