]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/DEVEL/ocaml-http/http_types.ml
changed interface of send_file function to enforce static type checking
[helm.git] / helm / DEVEL / ocaml-http / http_types.ml
index cae9998b3f83a7f10d695c0998315846bd658a76..40015e6831cd2d4d650fcc856a16935d3f62eb46 100644 (file)
@@ -134,6 +134,11 @@ type status =
   | server_error_status
   ]
 
+  (** File sources *)
+type file_source =
+  | FileSrc of string           (** filename *)
+  | InChanSrc of in_channel     (** input channel *)
+
   (** {2 Exceptions} *)
 
   (** invalid header encountered *)