Commit 52507006 by Tom Christie

Add docs on request.accepted_renderer and .accepted_media_type

parent 2daf0851
...@@ -49,6 +49,20 @@ If a client sends a request with a content-type that cannot be parsed then a `Un ...@@ -49,6 +49,20 @@ If a client sends a request with a content-type that cannot be parsed then a `Un
--- ---
# Content negotiation
The request exposes some properties that allow you to determine the result of the content negotiation stage. This allows you to implement behaviour such as selecting a different serialisation schemes for different media types.
## .accepted_renderer
The renderer instance what was selected by the content negotiation stage.
## .accepted_media_type
A string representing the media type that was accepted by the content negotiation stage.
---
# Authentication # Authentication
REST framework provides flexible, per-request authentication, that gives you the ability to: REST framework provides flexible, per-request authentication, that gives you the ability to:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment