Function: eww--guess-content-type

eww--guess-content-type is a byte-compiled function defined in eww.el.gz.

Signature

(eww--guess-content-type HEADERS RESPONSE-BUFFER)

Documentation

Use HEADERS and RESPONSE-BUFFER to guess the Content-Type.

Will call each function in eww-guess-content-type-functions, until one of them returns a value. This mechanism is used only if there isn't a valid Content-Type header. If none of the functions can guess, return
"application/octet-stream".

Source Code

;; Defined in /usr/src/emacs/lisp/net/eww.el.gz
(defun eww--guess-content-type (headers response-buffer)
  "Use HEADERS and RESPONSE-BUFFER to guess the Content-Type.
Will call each function in `eww-guess-content-type-functions', until one
of them returns a value.  This mechanism is used only if there isn't a
valid Content-Type header.  If none of the functions can guess, return
\"application/octet-stream\"."
  (save-excursion
    (or (run-hook-with-args-until-success
         'eww-guess-content-type-functions headers response-buffer)
        "application/octet-stream")))