- All Known Subinterfaces:
public interface RequestConfigurationAdditional HTTP request configuration. The configuration is applied before the request is made. It is applied exactly once, and in the case of re-try they will not be applied again for new attempts. an
IllegalArgumentExceptionis thrown if the same
RequestConfigurationis added more than once to a single request.
void apply(okhttp3.Request.Builder builder)Update the supplied builder with the configuration required. The order in which configurations are applied is not defined nor guaranteed to be the same between invocations.
builder- the request builder, some
RequestConfigurations may already have been applied to the builder