foreach {t v} [ns_set array [ns_conn headers]] { append r "$t: $v\n" } ns_return 200 text/plain "[ns_conn peeraddr] [ad_conn session_id] \n$r"