Optional middleware method for modifying HttpRequestOptions before a request is made
via the PolarityRequest.run method or PolarityRequest.runInParallel method.
The returned requestOptions object will be used for the request. This method is passed
a copy of the original requestOptions object so it can be modified without side effects.
This method is typically used for adding authentication (e.g., auth headers, or basic auth) to every request. It can also
be used to add headers that are required on every request or conditionally add headers based
on the passed in userOptions.
Optional middleware method for modifying HttpRequestOptions before a request is made via the PolarityRequest.run method or PolarityRequest.runInParallel method. The returned
requestOptionsobject will be used for the request. This method is passed a copy of the originalrequestOptionsobject so it can be modified without side effects.This method is typically used for adding authentication (e.g., auth headers, or basic auth) to every request. It can also be used to add headers that are required on every request or conditionally add headers based on the passed in
userOptions.