when posting an object, allows the request and/or json to be modified before being sent to the server.