]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/hbugs/common/hbugs_misc.mli
- the mathql interpreter is not helm-dependent any more
[helm.git] / helm / hbugs / common / hbugs_misc.mli
index 015c7b82b78165c602d6625dd174de1e02ff8377..b0ef59719aba92610b1c9862ac31a54aec19235d 100644 (file)
  *  http://helm.cs.unibo.it/
  *)
 
- (* HTTP GET request for a given url, return http response's body *)
+  (** helpers *)
+
+  (** remove all bindings of a given key from an hash table *)
+val hashtbl_remove_all: ('a, 'b) Hashtbl.t -> 'a -> unit
+
+  (** follows cut and paste from zack's Http_client_smart module *)
+
+  (** can't parse an HTTP url *)
+exception Malformed_URL of string
+  (** can't parse an HTTP response *)
+exception Malformed_HTTP_response of string
+  (** HTTP GET request for a given url, return http response's body *)
 val http_get: string -> string
- (* HTTP POST request for a given url, return http response's body, body
- argument, if specified, is sent as body along with request *)
+  (** HTTP POST request for a given url, return http response's body,
body argument, if specified, is sent as body along with request *)
 val http_post: ?body:string -> string -> string
 
-val hashtbl_remove_all: ('a, 'b) Hashtbl.t -> 'a -> unit
+  (** perform an HTTP GET request and apply a given function on each
+  'slice' of HTTP response read from server *)
+val http_get_iter_buf: callback:(string -> unit) -> string -> unit