Interface RequestConfiguration

All Known Subinterfaces:
BitbucketCredentials
All Known Implementing Classes:
BitbucketCredentials.AnonymousCredentials, RetryOnRateLimitConfig

public interface RequestConfiguration
Additional 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 IllegalArgumentException is thrown if the same RequestConfiguration is added more than once to a single request.
Since:
3.1
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    apply(okhttp3.Request.Builder builder)
    Update the supplied builder with the configuration required.
  • Method Details

    • apply

      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.
      Parameters:
      builder - the request builder, some RequestConfigurations may already have been applied to the builder