onRequest
Specifies the block handler for every HTTP request.
This block is invoked for every HttpClient.request call. There you can modify the request in a way you want: add headers, configure logging, etc.
See also
Parameters
block
An action that needs to be executed when a client creates an HTTP request.