template::get_mime_type (public)

 template::get_mime_type

Defined in packages/acs-templating/tcl/mime-procs.tcl

gets the mimetype from the outputheaders and if missing guesses text/html

Partial Call Graph (max 5 caller/called nodes):
%3 adp_parse_ad_conn_file adp_parse_ad_conn_file (private) template::get_mime_type template::get_mime_type adp_parse_ad_conn_file->template::get_mime_type template::adp_parse template::adp_parse (public) template::adp_parse->template::get_mime_type

Testcases:
No testcase defined.
Source code:
    if {[ns_conn isconnected]} {
        set mime_type [ns_set iget [ns_conn outputheaders] "content-type"]
    } else { 
        set mime_type {} 
    }
    if { $mime_type eq "" } {
        set mime_type "text/html"
    }

    return $mime_type
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: