class documentation
class BaseParser: (source)
Known subclasses: rest_framework.parsers.FileUploadParser
, rest_framework.parsers.FormParser
, rest_framework.parsers.JSONParser
, rest_framework.parsers.MultiPartParser
All parsers should extend `BaseParser`, specifying a `media_type` attribute, and overriding the `.parse()` method.
Method | parse |
Given a stream to read from, return the parsed representation. Should return parsed data, or a `DataAndFiles` object consisting of the parsed data and files. |
Class Variable | media |
Undocumented |
overridden in
rest_framework.parsers.FileUploadParser
, rest_framework.parsers.FormParser
, rest_framework.parsers.JSONParser
, rest_framework.parsers.MultiPartParser
Given a stream to read from, return the parsed representation. Should return parsed data, or a `DataAndFiles` object consisting of the parsed data and files.