]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/DEVEL/ocaml-http/http_parser.mli
implemented and exported heal_header_name and heal_header_value
[helm.git] / helm / DEVEL / ocaml-http / http_parser.mli
index 8aa5562bd36c5e23a7b77dcb31a2a6701bdf1b4a..4e70c35e4ddb2a06db85534f8b19c12a8086fdcd 100644 (file)
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *)
 
+val heal_header_name: string -> unit
+val heal_header_value: string -> unit
 val heal_header: string * string -> unit
 
+  (** given an input channel, reads from it a GET HTTP request and
+  @return a pair <path, query_params> where path is a string representing the
+  requested path and query_params is a list of pairs <name, value> (the GET
+  parameters) *)
 val parse_request: in_channel -> string * (string * string) list
 
+  (** as above, but return an Http_types.request instance *)
+val parse_request': in_channel -> Http_types.request
+