Name
getmaintype
Synopsis
m
.getmaintype( )
Returns
m
’s main content type,
taken from header Content-Type converted to lowercase. When
m
has no header Content-Type,
getmaintype
returns 'text
‘.
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.