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. anIllegalArgumentException
is thrown if the sameRequestConfiguration
is added more than once to a single request.- Since:
- 3.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
apply(okhttp3.Request.Builder builder)
Update the supplied builder with the configuration required.
-
-
-
Method Detail
-
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, someRequestConfiguration
s may already have been applied to the builder
-
-