I have seen simple wsgi applications that display either Hello World
or a PNG image (but not both) on a web page.
The first page uses 'Content-type', 'text/html; charset=utf-8'
and the second uses 'content-type', 'image/png'
.
How do I write a simple application (using say wsgiref.simple_server.make_server
) that sends BOTH text/html
and image/png
on the SAME web page?