diff options
| author | Tom Christie | 2013-07-04 05:50:04 -0700 |
|---|---|---|
| committer | Tom Christie | 2013-07-04 05:50:04 -0700 |
| commit | 99794773cf6b865b5b860b35db31dea92968c605 (patch) | |
| tree | 157b09d6b19ee5583d6d32123b3671c1c75adbc9 /docs/api-guide/renderers.md | |
| parent | a890116ab31e57af3bd1382c1f17259fa368f988 (diff) | |
| parent | 7398464b397d37dbcfda13eb6142039fed3e9a19 (diff) | |
| download | django-rest-framework-99794773cf6b865b5b860b35db31dea92968c605.tar.bz2 | |
Merge pull request #962 from tomchristie/test-client
APIClient and APIRequestFactory
Diffstat (limited to 'docs/api-guide/renderers.md')
| -rw-r--r-- | docs/api-guide/renderers.md | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/api-guide/renderers.md b/docs/api-guide/renderers.md index b627c930..869bdc16 100644 --- a/docs/api-guide/renderers.md +++ b/docs/api-guide/renderers.md @@ -217,6 +217,16 @@ Renders data into HTML for the Browsable API. This renderer will determine whic **.charset**: `utf-8` +## MultiPartRenderer + +This renderer is used for rendering HTML multipart form data. **It is not suitable as a response renderer**, but is instead used for creating test requests, using REST framework's [test client and test request factory][testing]. + +**.media_type**: `multipart/form-data; boundary=BoUnDaRyStRiNg` + +**.format**: `'.multipart'` + +**.charset**: `utf-8` + --- # Custom renderers @@ -373,6 +383,7 @@ Comma-separated values are a plain-text tabular data format, that can be easily [rfc4627]: http://www.ietf.org/rfc/rfc4627.txt [cors]: http://www.w3.org/TR/cors/ [cors-docs]: ../topics/ajax-csrf-cors.md +[testing]: testing.md [HATEOAS]: http://timelessrepo.com/haters-gonna-hateoas [quote]: http://roy.gbiv.com/untangled/2008/rest-apis-must-be-hypertext-driven [application/vnd.github+json]: http://developer.github.com/v3/media/ |
