File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,8 @@ HelloApplication: class extends Application {
19
19
20
20
main : func {
21
21
server := FCGIServer new (":8000" )
22
- server application = HelloApplication new ()
22
+ server setApplication (HelloApplication new ())
23
+
23
24
server run ()
24
25
}
25
26
Original file line number Diff line number Diff line change @@ -17,6 +17,6 @@ SendFile: class extends Application {
17
17
18
18
main : func {
19
19
server := FCGIServer new (":8000" )
20
- server application = SendFile new ()
20
+ server setApplication ( SendFile new () )
21
21
server run ()
22
22
}
Original file line number Diff line number Diff line change 2
2
import web/Application
3
3
4
4
Server : abstract class {
5
- run : func -> Bool { return false }
6
5
application : Application
6
+
7
+ setApplication : func (= application ) {}
8
+ application : func -> Application { application }
9
+
10
+ run : func -> Bool { return false }
7
11
}
You can’t perform that action at this time.
0 commit comments