File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 77 "mir-ion" : " ~>2.3.4" ,
88 "xbuf" : " ~>0.2.1" ,
99 "photon" : " ~>0.18.5" ,
10- "photon-http" : " ~>0.6.7 "
10+ "photon-http" : " ~>0.6.8 "
1111 },
1212 "description" : " Benchmark of photon-http" ,
1313 "license" : " BSL-1.0" ,
Original file line number Diff line number Diff line change @@ -27,13 +27,13 @@ class BenchmarkProcessor : HttpProcessor {
2727
2828 override void handle (HttpRequest req) {
2929 if (req.uri == " /plaintext" ) {
30- respondWith(" Hello, world!" , 200 , plainText);
30+ respondWith(" Hello, world!" , HttpStatus . OK , plainText);
3131 } else if (req.uri == " /json" ) {
3232 jsonBuf.clear();
3333 serializeJsonPretty! " " (jsonBuf, Message(" Hello, World!" ));
34- respondWith(jsonBuf.data, 200 , json);
34+ respondWith(jsonBuf.data, HttpStatus . OK , json);
3535 } else {
36- respondWith(" Not found" , 404 , plainText);
36+ respondWith(" Not found" , HttpStatus .NotFound , plainText);
3737 }
3838 }
3939}
You can’t perform that action at this time.
0 commit comments