Skip to content

Commit 7de76f9

Browse files
committed
added 'Http.Server.listen' function
1 parent ecdbf7c commit 7de76f9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Http.re

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -901,6 +901,12 @@ module Server = {
901901
"keepAliveTimeout";
902902
include Net.TcpServer.Impl;
903903
};
904+
905+
[@bs.send]
906+
external listen:
907+
(t, ~port: int, ~host: string, ~callback: unit => unit=?, unit) => t =
908+
"listen";
909+
904910
include Impl;
905911
};
906912

0 commit comments

Comments
 (0)