Opened 9 years ago

Last modified 8 months ago

#21442 new New feature

Configurable request parsing.

Reported by: Tom Christie Owned by:
Component: HTTP handling Version: dev
Severity: Normal Keywords:
Cc:…, Mark Lavin Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


This ticket if for implementing a request parsing API that ensures the Request objects can nicely handle JSON and other submitted types in addition the the existing multipart parsing.

The proposed API is based on this discussion:!searchin/django-developers/request.DATA/django-developers/s8OZ9yNh-8c/oCbNL5x6avAJ

  • request.DATA or for accessing the parsed data.
  • request.parsers or similar for modifying the parsers prior to parsing on a per-view basis.
  • request.accepted_parser or similar for branching on media type if needed.
  • A setting REQUEST_PARSERS or similar, that controls the default set of installed parsers.

Change History (8)

comment:1 Changed 9 years ago by Tim Graham

Triage Stage: UnreviewedAccepted

comment:2 Changed 8 years ago by akanouras

Cc:… added

comment:3 Changed 8 years ago by Tom Christie

Owner: changed from nobody to Tom Christie
Status: newassigned

comment:4 Changed 7 years ago by Asif Saifuddin Auvi

reading the DEP

my thoughts are wouldn't it better/nicer to handle the content negotiation per view based content negotiation? and there should be decorators to handle content negotiation in view level?

+ is it really necessary to introduce new global settings?

comment:5 Changed 7 years ago by Asif Saifuddin Auvi

or this is the HTTP Handling part only? view parts will be implemented differently in another ticket? serialization in another part? hope you don't get me wrong for asking too many questions.

comment:6 Changed 5 years ago by Mark Lavin

Cc: Mark Lavin added

comment:7 Changed 4 years ago by DoHyun Kim

How's it going? Any update about this issue?

comment:8 Changed 8 months ago by Mariusz Felisiak

Owner: Tom Christie deleted
Status: assignednew
Note: See TracTickets for help on using tickets.
Back to Top