Adding a hook to the codec to be able to read the body of every new request