Name

get_subtype

Synopsis

                        m.get_subtype(default=None)

Returns m’s content subtype, a string 'subtype' taken from header Content-Type converted to lowercase. When m has no header Content-Type, get_subtype returns default.

Get Python in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.