--- /dev/null
+This is a stub library for Zacchiroli's ocaml-http library.
+All the stubs, if called, just abort the program.
+The interface files are a minimal, proper subset of the ones of ocaml-http
+that only list the values used by matita.
+
+ocaml-http is copyrighted under the GNU Library General Public License as
+published by the Free Software Foundation, version 2.
--- /dev/null
+(library
+ (name http)
+ ;(libraries)
+ ;(modules (:standard \ componentsConf))
+ (modules_without_implementation http_types)
+ (wrapped false))
+(env
+ (_
+ (flags (:standard -w -27))))
+;(env
+ ;(_
+ ;(flags (:standard -w @A-52-4-34-37-45-9-44-48-6-32-20-58-7-57-3-68-69-70-50))))
--- /dev/null
+let send_basic_headers ?version ~code _ = assert false
+
+let send_headers ~headers _ = assert false
+
+let send_CRLF _ = assert false
--- /dev/null
+(* The interface of this stub file is taken from the equally named module
+ of the ocaml-http library *)
+
+val send_basic_headers:
+ ?version: Http_types.version -> code:Http_types.status_code ->
+ out_channel ->
+ unit
+
+val send_headers:
+ headers:(string * string) list -> out_channel -> unit
+
+val send_CRLF:
+ out_channel -> unit
--- /dev/null
+(* The interface of this stub file is taken from the equally named module
+ of the ocaml-http library *)
+
+type version
+type status
+type status_code = [ `Code of int | `Status of status ]
--- /dev/null
+exception Http_error of (int * string)
+
+let get ?head_callback _ = assert false
+
+let get_iter ?head_callback _ _ = assert false
+
+let head _ = assert false
--- /dev/null
+(* The interface of this stub file is taken from the equally named module
+ of the ocaml-http library *)
+
+exception Http_error of (int * string)
+
+val get:
+ ?head_callback:(Http_types.status -> (string * string) list -> unit) ->
+ string ->
+ string
+
+val get_iter:
+ ?head_callback:(Http_types.status -> (string * string) list -> unit) ->
+ (bytes -> unit) -> string ->
+ unit
+
+val head: string -> string
(ulex-camlp5 (>= 1.3))
(ocaml-expat (>= 1.1.0))
(pcre (>= 7.5.0))
- (ocamlnet (>= 4.1.9.git)) ; used only by ocaml-http
- (ocaml-http (>= 0.1.6))
+ ;(ocamlnet (>= 4.1.9.git)) ; used only by ocaml-http
+ ;(ocaml-http (>= 0.1.6)) ; no longer really used, replaced by failing stubs
+ ; in components/ocaml_http_stubs
(camlzip (>= 1.11))
(lablgtk3-sourceview3 (>= 3.1.3))
dune-build-info
"ulex-camlp5" {>= "1.3"}
"ocaml-expat" {>= "1.1.0"}
"pcre" {>= "7.5.0"}
- "ocamlnet" {>= "4.1.9.git"}
- "ocaml-http" {>= "0.1.6"}
"camlzip" {>= "1.11"}
"lablgtk3-sourceview3" {>= "3.1.3"}
"dune-build-info"