These are chat archives for rosshinkley/nightmare
headersargument or the
headersargument), no, it's the mime type of whatever the server is sending back for the URL (at least according to the server; it could be a lie ;)
image/jpegfor a JPG, etc.
headers['content-size']would be the size of the payload, but again, it's just what the server says, and may not always be present (that's the case in many systems, especially anything that is streaming content out, where the size can't be determined ahead of time)
typeargument is kind of like
headers['content-type'], but less specific—it explains a general category of what the browser is loading the content for, e.g.
mainFrame(the page itself),
subFrame(HTML in an <iframe> or <object>),