File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ const app = await createApp({
1313 requestTracking : {
1414 enabled : false , // Disable for fair comparison
1515 } ,
16+ requestLogging : {
17+ enabled : false , // Disable for fair comparison - no other entry logs requests
18+ } ,
1619 errorBoundary : {
1720 enabled : false , // Disable for fair comparison
1821 } ,
@@ -32,15 +35,15 @@ const app = await createApp({
3235} ) ;
3336
3437app . get ( '/' ) . handler ( ( _ , res ) => {
35- res . send ( '' ) ;
38+ res . end ( ) ;
3639} ) ;
3740
3841app . get ( '/user/:id' ) . handler ( ( { params} , res ) => {
39- res . send ( params . id ) ;
42+ res . end ( params . id ) ;
4043} ) ;
4144
4245app . post ( '/user' ) . handler ( ( _ , res ) => {
43- res . send ( '' ) ;
46+ res . end ( ) ;
4447} ) ;
4548
4649app . listen ( ( ) => {
Original file line number Diff line number Diff line change 11{
22 "dependencies" : {
3- "@morojs/moro" : " ^1.8.0 " ,
3+ "@morojs/moro" : " ^1.8.9 " ,
44 "uWebSockets.js" : " github:uNetworking/uWebSockets.js#semver:^v20.69.0"
55 }
66}
Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ const app = await createApp({
1313 requestTracking : {
1414 enabled : false , // Disable for fair comparison
1515 } ,
16+ requestLogging : {
17+ enabled : false , // Disable for fair comparison - no other entry logs requests
18+ } ,
1619 errorBoundary : {
1720 enabled : false , // Disable for fair comparison
1821 } ,
@@ -32,15 +35,15 @@ const app = await createApp({
3235} ) ;
3336
3437app . get ( '/' ) . handler ( ( _ , res ) => {
35- res . send ( '' ) ;
38+ res . end ( ) ;
3639} ) ;
3740
3841app . get ( '/user/:id' ) . handler ( ( { params} , res ) => {
39- res . send ( params . id ) ;
42+ res . end ( params . id ) ;
4043} ) ;
4144
4245app . post ( '/user' ) . handler ( ( _ , res ) => {
43- res . send ( '' ) ;
46+ res . end ( ) ;
4447} ) ;
4548
4649app . listen ( ( ) => {
Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ const app = await createApp({
1313 requestTracking : {
1414 enabled : false , // Disable for fair comparison
1515 } ,
16+ requestLogging : {
17+ enabled : false , // Disable for fair comparison - no other entry logs requests
18+ } ,
1619 errorBoundary : {
1720 enabled : false , // Disable for fair comparison
1821 } ,
@@ -32,15 +35,15 @@ const app = await createApp({
3235} ) ;
3336
3437app . get ( '/' ) . handler ( ( _ , res ) => {
35- res . send ( '' ) ;
38+ res . end ( ) ;
3639} ) ;
3740
3841app . get ( '/user/:id' ) . handler ( ( { params} , res ) => {
39- res . send ( params . id ) ;
42+ res . end ( params . id ) ;
4043} ) ;
4144
4245app . post ( '/user' ) . handler ( ( _ , res ) => {
43- res . send ( '' ) ;
46+ res . end ( ) ;
4447} ) ;
4548
4649app . listen ( ( ) => {
Original file line number Diff line number Diff line change 11{
22 "dependencies" : {
3- "@morojs/moro" : " ^1.8.0 "
3+ "@morojs/moro" : " ^1.8.9 "
44 }
55}
You can’t perform that action at this time.
0 commit comments