How to limit payload size?
Is there a way to limit the payload size? E.g., if a particularly large JSON payload is sent to the (standalone) server, the server should stop after having read a set number of bytes and fail the request.
1 Reply
Seems a raw Node.js server would work with something similar to the following, however the 'data' event inside
createContext
is not firing
Is the data already received by the time createContext
is ran?