let submit_req ~url msg =
msg_of_string (Hbugs_misc.http_post ~body:(string_of_msg msg) url)
+let return_xml_msg body outchan =
+ Http_daemon.respond ~headers:["Content-Type", "text/xml"] ~body outchan
+let respond_msg msg = return_xml_msg (string_of_msg msg);;
+let respond_exc name value = respond_msg (Exception (name, value));;
open Hbugs_types;;
+exception Parse_error of string * string (* parsing subject, reason *)
+
val msg_of_string: string -> message
val string_of_msg: message -> string
val submit_req: url:string -> message -> message
+val respond_msg: message -> out_channel -> unit
+ (* exception_name, exception_value, output_channel *)
+val respond_exc: string -> string -> out_channel -> unit