set result "" foreach {tag value} [ns_set array [ns_conn headers]] { append result "$tag: $value\n" } ns_return 200 text/plain $result