File tree 6 files changed +11
-25
lines changed
6 files changed +11
-25
lines changed Original file line number Diff line number Diff line change @@ -31,8 +31,8 @@ depends: [
31
31
"ocaml" {>= "4.08"}
32
32
"mirage-flow" {>= "2.0.0"}
33
33
"mirage-channel" {>= "4.0.0"}
34
- "conduit" {>= "2 .0.2 "}
35
- "conduit-mirage" {>= "2.3 .0"}
34
+ "conduit" {>= "8 .0.0 "}
35
+ "conduit-mirage" {>= "8.0 .0"}
36
36
"mirage-kv" {>= "3.0.0"}
37
37
"lwt" {>= "2.4.3"}
38
38
"cohttp-lwt" {= version}
Original file line number Diff line number Diff line change 17
17
* %%NAME%% %%VERSION%%
18
18
*)
19
19
20
- module Make
21
- (P : Mirage_clock.PCLOCK )
22
- (R : Resolver_mirage.S )
23
- (S : Conduit_mirage.S ) =
24
- struct
25
- module Net = Net. Make (P ) (R ) (S )
20
+ module Make (R : Resolver_mirage.S ) (S : Conduit_mirage.S ) = struct
21
+ module Net = Net. Make (R ) (S )
26
22
module Connection = Cohttp_lwt.Connection. Make (Net )
27
23
include Cohttp_lwt.Client. Make (Connection )
28
24
Original file line number Diff line number Diff line change 1
- module Make
2
- (_ : Mirage_clock.PCLOCK )
3
- (R : Resolver_mirage.S )
4
- (S : Conduit_mirage.S ) : sig
1
+ module Make (R : Resolver_mirage.S ) (S : Conduit_mirage.S ) : sig
5
2
module Connection : Cohttp_lwt .S. Connection
6
3
include Cohttp_lwt.S. Client with type ctx = Connection.Net. ctx
7
4
Original file line number Diff line number Diff line change 1
- module Make
2
- (P : Mirage_clock.PCLOCK )
3
- (R : Resolver_mirage.S )
4
- (S : Conduit_mirage.S ) =
5
- struct
1
+ module Make (R : Resolver_mirage.S ) (S : Conduit_mirage.S ) = struct
6
2
module Channel = Mirage_channel. Make (S. Flow )
7
3
module Input_channel = Input_channel. Make (Channel )
8
- module Endpoint = Conduit_mirage. Endpoint (P )
9
4
module IO = Io. Make (Channel )
10
5
open IO
11
6
28
23
let resolve ~ctx uri = R. resolve_uri ~uri ctx.resolver
29
24
30
25
let connect_endp ~ctx endp =
31
- Endpoint. client ?tls_authenticator:ctx.authenticator endp >> = fun client ->
26
+ Conduit_mirage.Endpoint. client ?tls_authenticator:ctx.authenticator endp
27
+ >> = fun client ->
32
28
match ctx.conduit with
33
29
| None -> failwith " conduit not initialised"
34
30
| Some c ->
Original file line number Diff line number Diff line change 1
- module Make
2
- (_ : Mirage_clock.PCLOCK )
3
- (R : Resolver_mirage.S )
4
- (S : Conduit_mirage.S ) : sig
1
+ module Make (R : Resolver_mirage.S ) (S : Conduit_mirage.S ) : sig
5
2
type ctx = {
6
3
resolver : R .t ;
7
4
conduit : S .t option ;
Original file line number Diff line number Diff line change 218
218
( mirage-channel
219
219
( >= 4 .0.0) )
220
220
( conduit
221
- ( >= 2 .0.2 ) )
221
+ ( >= 8 .0.0 ) )
222
222
( conduit-mirage
223
- ( >= 2 .3 .0) )
223
+ ( >= 8 .0 .0) )
224
224
( mirage-kv
225
225
( >= 3 .0.0) )
226
226
( lwt
You can’t perform that action at this time.
0 commit comments