Skip to content

Commit 6a6bd91

Browse files
committed
Merge pull request #2 from avsm/master
Remove references to Cohttp_mirage_io
2 parents 6068734 + 172f396 commit 6a6bd91

File tree

5 files changed

+13
-10
lines changed

5 files changed

+13
-10
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ setup.data
1313
setup.log
1414
_build
1515
*.native
16+
.*.swp

_oasis

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ Library mirage_http_xen
1212
Path: lib
1313
Findlibname: mirage-http-xen
1414
Modules: HTTP
15+
InternalModules: HTTP_IO
1516
BuildDepends: cohttp.lwt-core, mirage-tcpip-xen, lwt.syntax

lib/HTTP.ml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ open Net
2222

2323
module Net_IO = struct
2424

25-
module IO = Cohttp_mirage_io
25+
module IO = HTTP_IO
2626

2727
let connect_uri uri =
2828
fail (Failure "not implemented")
@@ -37,13 +37,13 @@ module Net_IO = struct
3737
end
3838

3939
(* Build all the core modules from the [Cohttp_lwt] functors *)
40-
module Request = Cohttp_lwt.Make_request(Cohttp_mirage_io)
41-
module Response = Cohttp_lwt.Make_response(Cohttp_mirage_io)
42-
module Client = Cohttp_lwt.Make_client(Cohttp_mirage_io)(Request)(Response)(Net_IO)
43-
module Server_core = Cohttp_lwt.Make_server(Cohttp_mirage_io)(Request)(Response)(Net_IO)
40+
module Request = Cohttp_lwt.Make_request(HTTP_IO)
41+
module Response = Cohttp_lwt.Make_response(HTTP_IO)
42+
module Client = Cohttp_lwt.Make_client(HTTP_IO)(Request)(Response)(Net_IO)
43+
module Server_core = Cohttp_lwt.Make_server(HTTP_IO)(Request)(Response)(Net_IO)
4444

4545
module type S = sig
46-
include Cohttp_lwt.Server with module IO = Cohttp_mirage_io
46+
include Cohttp_lwt.Server with module IO = HTTP_IO
4747
val listen : ?timeout:float -> Net.Manager.t -> Net.Nettypes.ipv4_src -> t -> unit Lwt.t
4848
end
4949

lib/mirage_http_xen.mllib

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# OASIS_START
2-
# DO NOT EDIT (digest: 293c9ea246ff9985dc6f62a650f78986)
2+
# DO NOT EDIT (digest: 120e4679a5100613b6b5c6a9d33858c7)
33
HTTP
4+
HTTP_IO
45
# OASIS_STOP

setup.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
(* setup.ml generated for the first time by OASIS v0.3.0 *)
22

33
(* OASIS_START *)
4-
(* DO NOT EDIT (digest: 3f637938a795abc214e8fbab1a479440) *)
4+
(* DO NOT EDIT (digest: afdda2d40360841831b8c6a7912abcbe) *)
55
(*
66
Regenerated by OASIS v0.4.0
77
Visit http://oasis.forge.ocamlcore.org for more information and
@@ -6629,7 +6629,7 @@ let setup_t =
66296629
{
66306630
lib_modules = ["HTTP"];
66316631
lib_pack = false;
6632-
lib_internal_modules = [];
6632+
lib_internal_modules = ["HTTP_IO"];
66336633
lib_findlib_parent = None;
66346634
lib_findlib_name = Some "mirage-http-xen";
66356635
lib_findlib_containers = []
@@ -6641,7 +6641,7 @@ let setup_t =
66416641
};
66426642
oasis_fn = Some "_oasis";
66436643
oasis_version = "0.4.0";
6644-
oasis_digest = Some "äç\"&Qu\131G\"\004Go\004øú\028";
6644+
oasis_digest = Some "E3HJFÙ¢_\\\024ÆÅb]ßm";
66456645
oasis_exec = None;
66466646
oasis_setup_args = [];
66476647
setup_update = false

0 commit comments

Comments
 (0)