preprocessHttpRequest

Can be used to change request parameters before a request is made. If null is returned, the original HttpRequest object will be used without modifications.

This callback is invoked on a background thread. Calls for different requests may run concurrently.

If a Future is returned, the loading thread waits for it to complete before sending the request.