Home
last modified time | relevance | path

Searched refs:networkInterceptors (Results 1 – 12 of 12) sorted by relevance

/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DInterceptorTest.java92 client.networkInterceptors().add(interceptor); in networkInterceptorsCannotShortCircuitResponses()
117 client.networkInterceptors().add(interceptor); in networkInterceptorsCannotCallProceedMultipleTimes()
145 client.networkInterceptors().add(interceptor); in networkInterceptorsCannotChangeServerAddress()
163 client.networkInterceptors().add(new Interceptor() { in networkInterceptorsHaveConnectionAccess()
182 client.networkInterceptors().add(new Interceptor() { in networkInterceptorsObserveNetworkHeaders()
216 client.networkInterceptors().add(new Interceptor() { in networkInterceptorsCanChangeRequestMethodFromGetToPost()
247 rewriteRequestToServer(client.networkInterceptors()); in networkInterceptorsRewriteRequestToServer()
283 rewriteResponseFromServer(client.networkInterceptors()); in networkInterceptorsRewriteResponseFromServer()
316 multipleInterceptors(client.networkInterceptors()); in multipleNetworkInterceptors()
363 asyncInterceptors(client.networkInterceptors()); in asyncNetworkInterceptors()
[all …]
DOkHttpClientTest.java160 clone.networkInterceptors().add(null); in clonedInterceptorsListsAreIndependent()
162 assertEquals(0, original.networkInterceptors().size()); in clonedInterceptorsListsAreIndependent()
DCacheTest.java1985 client.networkInterceptors().add(new Interceptor() { in networkInterceptorInvokedForConditionalGet()
2007 client.networkInterceptors().add(new Interceptor() { in networkInterceptorNotInvokedForFullyCached()
DURLConnectionTest.java3211 client.client().networkInterceptors().add(interceptor);
/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/
DRewriteResponseCacheControl.java59 client.networkInterceptors().add(REWRITE_CACHE_CONTROL_INTERCEPTOR); in run()
62 client.networkInterceptors().clear(); in run()
DLoggingInterceptors.java30 client.networkInterceptors().add(new Interceptor() { in LoggingInterceptors()
DCheckHandshake.java47 client.networkInterceptors().add(CHECK_HANDSHAKE_INTERCEPTOR); in CheckHandshake()
DProgress.java49 client.networkInterceptors().add(new Interceptor() { in run()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DOkHttpClient.java126 private final List<Interceptor> networkInterceptors = new ArrayList<>(); field in OkHttpClient
160 this.networkInterceptors.addAll(okHttpClient.networkInterceptors); in OkHttpClient()
555 public List<Interceptor> networkInterceptors() { in networkInterceptors() method in OkHttpClient
556 return networkInterceptors; in networkInterceptors()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
DHttpEngine.java674 Interceptor caller = client.networkInterceptors().get(index - 1); in proceed()
691 if (index < client.networkInterceptors().size()) { in proceed()
694 Interceptor interceptor = client.networkInterceptors().get(index); in proceed()
/external/okhttp/okhttp-logging-interceptor/src/test/java/com/squareup/okhttp/logging/
DHttpLoggingInterceptorTest.java66 client.networkInterceptors().add(networkInterceptor); in setUp()
/external/okhttp/
DCHANGELOG.md86 client.networkInterceptors().add(loggingInterceptor);