Enables developers to modify the data of a request prior to sending. The current body data and headers map will be passed to this method, and the return value will be used as the new request body data. You can also mutate the headers map (e.g. by adding or deleting values) prior to the request being sent.
The payload passed to DataLayer.createRequest. Whatever you return from this function will be used as the new request payload.
A key-value collection of header names to header values. You can modify this object directly (e.g. by adding or deleting values) prior to the request being sent.
The new body to send with the request.
Enables developers to modify the data of a response before it is returned to callers.
The response payload returned from the server. Whatever value you return from this function will replace Response.data.
The data to return to callers.