DEV Community

Discussion on: NodeJs Response

Collapse
 
dasrajanraj profile image
Rajan Raj Das • Edited

No, you cannot do that. If you see the basic of Http response packet. It has header section( with several sub heading ) and a response body. These are the protocol that guide the communication between client and server.
If you are directly adding a field ( i.e. abc ) in the response , it cannot create its own section apart from what is defined in the protocol ,right?
I think this would answer you question.