File tree 5 files changed +10
-15
lines changed
5 files changed +10
-15
lines changed Original file line number Diff line number Diff line change 56
56
( = :version ) )
57
57
( faraday-lwt-unix
58
58
( >= " 0.7.3" ) ) )
59
- ( depopts lwt_ssl tls) )
59
+ ( depopts
60
+ ( lwt_ssl
61
+ ( >= " 1.2.0" ) )
62
+ tls) )
60
63
61
64
( package
62
65
(name gluten-mirage)
Original file line number Diff line number Diff line change @@ -208,7 +208,7 @@ module Client = struct
208
208
let shutdown t =
209
209
t.shutdown_reader () ;
210
210
Gluten.Client. shutdown t.connection;
211
- Promise. await t.shutdown_complete
211
+ t.shutdown_complete
212
212
213
213
let is_closed t = Gluten.Client. is_closed t.connection
214
214
let socket t = t.socket
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ module Client : sig
62
62
-> t
63
63
64
64
val upgrade : t -> Gluten .impl -> unit
65
- val shutdown : t -> unit
65
+ val shutdown : t -> unit Eio.Promise .t
66
66
val is_closed : t -> bool
67
67
val socket : t -> Eio.Flow .two_way
68
68
end
Original file line number Diff line number Diff line change @@ -12,7 +12,10 @@ depends: [
12
12
"gluten-lwt" {= version}
13
13
"faraday-lwt-unix" {>= "0.7.3"}
14
14
]
15
- depopts: ["lwt_ssl" "tls"]
15
+ depopts: [
16
+ "lwt_ssl" {>= "1.2.0"}
17
+ "tls"
18
+ ]
16
19
build: [
17
20
["dune" "subst"] {pinned}
18
21
[
Original file line number Diff line number Diff line change @@ -34,30 +34,22 @@ module type RUNTIME = sig
34
34
type t
35
35
36
36
val next_read_operation : t -> [ `Read | `Yield | `Close ]
37
-
38
37
val read : t -> Bigstringaf .t -> off :int -> len :int -> int
39
-
40
38
val read_eof : t -> Bigstringaf .t -> off :int -> len :int -> int
41
-
42
39
val yield_reader : t -> (unit -> unit ) -> unit
43
40
44
41
val next_write_operation
45
42
: t
46
43
-> [ `Write of Bigstringaf. t Faraday. iovec list | `Yield | `Close of int ]
47
44
48
45
val report_write_result : t -> [ `Ok of int | `Closed ] -> unit
49
-
50
46
val yield_writer : t -> (unit -> unit ) -> unit
51
-
52
47
val report_exn : t -> exn -> unit
53
-
54
48
val is_closed : t -> bool
55
-
56
49
val shutdown : t -> unit
57
50
end
58
51
59
52
type 't runtime = (module RUNTIME with type t = 't )
60
-
61
53
type impl
62
54
63
55
val make : 't runtime -> 't -> impl
@@ -73,7 +65,6 @@ module Server : sig
73
65
include RUNTIME
74
66
75
67
val create : protocol :'t runtime -> 't -> t
76
-
77
68
val upgrade_protocol : t -> impl -> unit
78
69
79
70
type 'reqd request_handler = 'reqd Reqd .t -> unit
@@ -89,7 +80,6 @@ module Client : sig
89
80
include RUNTIME
90
81
91
82
val create : protocol :'t runtime -> 't -> t
92
-
93
83
val upgrade_protocol : t -> impl -> unit
94
84
end
95
85
@@ -103,7 +93,6 @@ module Buffer : sig
103
93
type t
104
94
105
95
val create : int -> t
106
-
107
96
val get : t -> f :(Bigstringaf .t -> off :int -> len :int -> int ) -> int
108
97
109
98
val put
You can’t perform that action at this time.
0 commit comments