File tree 4 files changed +6
-15
lines changed
4 files changed +6
-15
lines changed Original file line number Diff line number Diff line change 17
17
* %%NAME%% %%VERSION%%
18
18
*)
19
19
20
- module Make
21
- (R : Resolver_mirage.S )
22
- (S : Conduit_mirage.S ) =
23
- struct
20
+ module Make (R : Resolver_mirage.S ) (S : Conduit_mirage.S ) = struct
24
21
module Net = Net. Make (R ) (S )
25
22
module Connection = Cohttp_lwt.Connection. Make (Net )
26
23
include Cohttp_lwt.Client. Make (Connection )
Original file line number Diff line number Diff line change 1
- module Make
2
- (R : Resolver_mirage.S )
3
- (S : Conduit_mirage.S ) : sig
1
+ module Make (R : Resolver_mirage.S ) (S : Conduit_mirage.S ) : sig
4
2
module Connection : Cohttp_lwt .S. Connection
5
3
include Cohttp_lwt.S. Client with type ctx = Connection.Net. ctx
6
4
Original file line number Diff line number Diff line change 1
- module Make
2
- (R : Resolver_mirage.S )
3
- (S : Conduit_mirage.S ) =
4
- struct
1
+ module Make (R : Resolver_mirage.S ) (S : Conduit_mirage.S ) = struct
5
2
module Channel = Mirage_channel. Make (S. Flow )
6
3
module Input_channel = Input_channel. Make (Channel )
7
4
module IO = Io. Make (Channel )
23
20
let resolve ~ctx uri = R. resolve_uri ~uri ctx.resolver
24
21
25
22
let connect_endp ~ctx endp =
26
- Conduit_mirage.Endpoint. client ?tls_authenticator:ctx.authenticator endp >> = fun client ->
23
+ Conduit_mirage.Endpoint. client ?tls_authenticator:ctx.authenticator endp
24
+ >> = fun client ->
27
25
match ctx.conduit with
28
26
| None -> failwith " conduit not initialised"
29
27
| Some c ->
Original file line number Diff line number Diff line change 1
- module Make
2
- (R : Resolver_mirage.S )
3
- (S : Conduit_mirage.S ) : sig
1
+ module Make (R : Resolver_mirage.S ) (S : Conduit_mirage.S ) : sig
4
2
type ctx = {
5
3
resolver : R .t ;
6
4
conduit : S .t option ;
You can’t perform that action at this time.
0 commit comments