For the 2x faster JSON string conversion at the body response.
Those route decrorators would boost up the JSON.stringify() function to be two times faster.
TypedRoute.Get()
TypedRoute.Delete()
TypedRoute.Post()
TypedRoute.Patch()
TypedRoute.Put()
EncryptedRoute.Get()
EncryptedRoute.Delete()
EncryptedRoute.Post()
EncryptedRoute.Patch()
EncryptedRoute.Put()
If return type is not clear by some reason, like an abstract controller class with generic argumented return type, it would not use the typescript-json but the pure JSON.stringify() function.
For the 2x faster JSON string conversion at the body response.
Those route decrorators would boost up the
JSON.stringify()
function to be two times faster.TypedRoute.Get()
TypedRoute.Delete()
TypedRoute.Post()
TypedRoute.Patch()
TypedRoute.Put()
EncryptedRoute.Get()
EncryptedRoute.Delete()
EncryptedRoute.Post()
EncryptedRoute.Patch()
EncryptedRoute.Put()
If return type is not clear by some reason, like an abstract controller class with generic argumented return type, it would not use the
typescript-json
but the pureJSON.stringify()
function.Of course, this booster requires a special configuration on the
tsconfig.json
file like samchon/typescript-json#tsconfigjson