This repository was archived by the owner on Aug 10, 2020. It is now read-only.
File tree 3 files changed +8
-8
lines changed
examples/node-http-server
3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"devDependencies" : {
3
- "bs-platform" : " ^0.5.5 "
3
+ "bs-platform" : " 0.6.2 "
4
4
},
5
5
"scripts" : {
6
6
"build" : " bsc -c test_http_server.ml"
Original file line number Diff line number Diff line change 1
- // GENERATED CODE BY BUCKLESCRIPT VERSION 0.5.5 , PLEASE EDIT WITH CARE
1
+ // GENERATED CODE BY BUCKLESCRIPT VERSION 0.6.2 , PLEASE EDIT WITH CARE
2
2
'use strict' ;
3
3
4
4
var Pervasives = require ( "bs-platform/lib/js/pervasives" ) ;
Original file line number Diff line number Diff line change @@ -39,21 +39,21 @@ let create_server http =
39
39
40
40
type req
41
41
42
- type resp = <
42
+ type resp = [ % bs.obj: <
43
43
statusCode_set : int -> unit ;
44
44
setHeader : string * string -> unit ;
45
45
end_ : string -> unit
46
- > [ @ bs.obj]
46
+ > ]
47
47
48
- type server = <
48
+ type server = [ % bs.obj: <
49
49
listen : int * string * (unit -> unit ) -> unit
50
- > [ @ bs.obj]
50
+ > ]
51
51
52
52
53
53
54
- type http = <
54
+ type http = [ % bs.obj: <
55
55
createServer : (req * resp -> unit ) -> server
56
- > [ @ bs.obj]
56
+ > ]
57
57
58
58
59
59
external http : http = " http" [@@ bs.val_of_module ]
You can’t perform that action at this time.
0 commit comments