Skip to content

Commit 65dbdcc

Browse files
committed
include Events module in the Agent module;
1 parent bd84b37 commit 65dbdcc

File tree

1 file changed

+30
-27
lines changed

1 file changed

+30
-27
lines changed

src/Https.re

Lines changed: 30 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -17,31 +17,34 @@ module HttpsServer = {
1717

1818
module Agent = {
1919
type t;
20-
[@bs.send]
21-
external onKeylog:
22-
(
23-
t,
24-
[@bs.as "keylog"] _,
25-
[@bs.uncurry] ((Buffer.t, Tls.TlsSocket.t) => unit)
26-
) =>
27-
t =
28-
"on";
29-
[@bs.send]
30-
external onKeylogOnce:
31-
(
32-
t,
33-
[@bs.as "keylog"] _,
34-
[@bs.uncurry] ((Buffer.t, Tls.TlsSocket.t) => unit)
35-
) =>
36-
t =
37-
"once";
38-
[@bs.send]
39-
external offKeylog:
40-
(
41-
t,
42-
[@bs.as "keylog"] _,
43-
[@bs.uncurry] ((Buffer.t, Tls.TlsSocket.t) => unit)
44-
) =>
45-
t =
46-
"off";
20+
module Events = {
21+
[@bs.send]
22+
external onKeylog:
23+
(
24+
t,
25+
[@bs.as "keylog"] _,
26+
[@bs.uncurry] ((Buffer.t, Tls.TlsSocket.t) => unit)
27+
) =>
28+
t =
29+
"on";
30+
[@bs.send]
31+
external onKeylogOnce:
32+
(
33+
t,
34+
[@bs.as "keylog"] _,
35+
[@bs.uncurry] ((Buffer.t, Tls.TlsSocket.t) => unit)
36+
) =>
37+
t =
38+
"once";
39+
[@bs.send]
40+
external offKeylog:
41+
(
42+
t,
43+
[@bs.as "keylog"] _,
44+
[@bs.uncurry] ((Buffer.t, Tls.TlsSocket.t) => unit)
45+
) =>
46+
t =
47+
"off";
48+
};
49+
include Events;
4750
};

0 commit comments

Comments
 (0)