preprocess Http Request
abstract fun preprocessHttpRequest(type: HttpRequestType, request: HttpRequest): Future<HttpRequest>
Content copied to clipboard
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.
Return
A Future which returns the preprocessed HttpRequest.
Parameters
type
The type of the request to be made.
request
Configuration object of the request.