CronetInterceptor.Builder

public final class CronetInterceptor.Builder


A builder for CronetInterceptor.

Summary

Public methods

final ObjectBeingBuiltT
final SubBuilderT

Sets the strategy for following redirects.

final SubBuilderT

Sets the size of upload data provider executor.

Public methods

build

public final ObjectBeingBuiltT build()

setRedirectStrategy

public final SubBuilderT setRedirectStrategy(RedirectStrategy redirectStrategy)

Sets the strategy for following redirects.

Note that the Cronet (i.e. Chromium) wide safeguards will still apply if one attempts to follow redirects too many times.

setUploadDataProviderExecutorSize

public final SubBuilderT setUploadDataProviderExecutorSize(int size)

Sets the size of upload data provider executor. The same executor is used for all upload data providers within the interceptor.