Name

gettype

Synopsis

                        m.gettype( )

Returns m’s content type, taken from header Content-Type converted to lowercase. When m has no header Content-Type, gettype returns 'text/plain‘.

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.