diff options
| author | Tom Christie | 2012-10-17 22:58:18 +0100 | 
|---|---|---|
| committer | Tom Christie | 2012-10-17 22:58:18 +0100 | 
| commit | e126b615420fed12af58675cb4bb52e749b006bd (patch) | |
| tree | 4284ae586c094557153371c1dfd483906e6056b0 /docs/api-guide/content-negotiation.md | |
| parent | bbd3728da615f688da6a5276c6a898990275f32c (diff) | |
| download | django-rest-framework-e126b615420fed12af58675cb4bb52e749b006bd.tar.bz2 | |
Negotiation API finalized.  .select_renderers and .select_parsers
Diffstat (limited to 'docs/api-guide/content-negotiation.md')
| -rw-r--r-- | docs/api-guide/content-negotiation.md | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/docs/api-guide/content-negotiation.md b/docs/api-guide/content-negotiation.md index ad98de3b..b95091c5 100644 --- a/docs/api-guide/content-negotiation.md +++ b/docs/api-guide/content-negotiation.md @@ -7,3 +7,9 @@  > — [RFC 2616][cite], Fielding et al.  [cite]: http://www.w3.org/Protocols/rfc2616/rfc2616-sec12.html + +**TODO**: Describe content negotiation style used by REST framework. + +## Custom content negotiation + +It's unlikley that you'll want to provide a custom content negotiation scheme for REST framework, but you can do so if needed.  To implement a custom content negotiation scheme, override `BaseContentNegotiation`, and implement the `.select_parser(request, parsers)` and `.select_renderer(request, renderers, format_suffix)`
\ No newline at end of file | 
