preprocessHttpRequest

abstract fun preprocessHttpRequest(type: HttpRequestType, request: HttpRequest): Future<HttpRequest>

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

Return

A Future which returns the preprocessed HttpRequest.

Parameters

type

The type of the request to be made.

request

Configuration object of the request.