class documentation

class DefaultContentNegotiation(BaseContentNegotiation): (source)

View In Hierarchy

Undocumented

Method filter_renderers If there is a '.json' style format suffix, filter the renderers so that we only negotiation against those that accept that format.
Method get_accept_list Given the incoming request, return a tokenized list of media type strings.
Method select_parser Given a list of parsers and a media type, return the appropriate parser to handle the incoming request.
Method select_renderer Given a request and a list of renderers, return a two-tuple of: (renderer, media type).
def filter_renderers(self, renderers, format): (source)

If there is a '.json' style format suffix, filter the renderers so that we only negotiation against those that accept that format.

def get_accept_list(self, request): (source)

Given the incoming request, return a tokenized list of media type strings.

def select_parser(self, request, parsers): (source)

Given a list of parsers and a media type, return the appropriate parser to handle the incoming request.

def select_renderer(self, request, renderers, format_suffix=None): (source)

Given a request and a list of renderers, return a two-tuple of: (renderer, media type).