- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 173 for intercept (0.07 sec)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/CompressionInterceptor.kt
}.joinToString(separator = ", ") override fun intercept(chain: Interceptor.Chain): Response = if (algorithms.isNotEmpty() && chain.request().header("Accept-Encoding") == null) { val request = chain .request() .newBuilder() .header("Accept-Encoding", acceptEncoding) .build() val response = chain.proceed(request) decompress(response)
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Aug 01 06:04:22 UTC 2025 - 3.2K bytes - Viewed (1) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/CallServerInterceptor.kt
import okhttp3.Headers import okhttp3.Interceptor import okhttp3.Response import okhttp3.TrailersSource import okhttp3.internal.UnreadableResponseBody import okhttp3.internal.http2.ConnectionShutdownException import okhttp3.internal.skipAll import okio.buffer /** This is the last interceptor in the chain. It makes a network call to the server. */ object CallServerInterceptor : Interceptor { @Throws(IOException::class)
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue Jul 29 22:04:11 UTC 2025 - 7.8K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/RequestBodyCompression.java
} public static void main(String... args) throws Exception { new RequestBodyCompression().run(); } /** This interceptor compresses the HTTP request body. Many webservers can't handle this! */ static class GzipRequestInterceptor implements Interceptor { @Override public Response intercept(Chain chain) throws IOException { Request originalRequest = chain.request();
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Jun 04 17:43:43 UTC 2025 - 3.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbSessionTest.java
@Mock SmbTransport transport; // static helper that returns the mocked transport. The real class // performs several other operations, but for the purpose of the test // we intercept the factory call. private MockedStatic<SmbTransport> smbtStatic; @BeforeEach void setUp() throws Exception { // Create a real NtlmPasswordAuthentication instance
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0) -
okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/HttpLoggingInterceptor.kt
* * The format of the logs created by this class should not be considered stable and may * change slightly between releases. If you need a stable logging format, use your own interceptor. */ class HttpLoggingInterceptor @JvmOverloads constructor( private val logger: Logger = Logger.DEFAULT, ) : Interceptor {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Aug 21 14:27:04 UTC 2025 - 11.4K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/collect/testing/MapTestSuiteBuilderTests.java
* {@code setUpRan} parameter is set true by the {@code setUp} that every test case is supposed to * have registered, and set false by the {@code tearDown}. We use a dynamic proxy to intercept all * of the {@code Map} method calls and check that {@code setUpRan} is true. */ private static class CheckSetUpHashMapGenerator extends WrappedHashMapGenerator { private final AtomicBoolean setUpRan;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu May 22 16:18:11 UTC 2025 - 11.4K bytes - Viewed (0) -
docs/en/docs/tutorial/cors.md
### CORS preflight requests { #cors-preflight-requests } These are any `OPTIONS` request with `Origin` and `Access-Control-Request-Method` headers. In this case the middleware will intercept the incoming request and respond with appropriate CORS headers, and either a `200` or `400` response for informational purposes. ### Simple requests { #simple-requests }
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 5.5K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/RetryAndFollowUpInterceptor.kt
import okhttp3.internal.withSuppressed /** * This interceptor recovers from failures and follows redirects as necessary. It may throw an * [IOException] if the call was canceled. */ class RetryAndFollowUpInterceptor( private val client: OkHttpClient, ) : Interceptor { @Throws(IOException::class) override fun intercept(chain: Interceptor.Chain): Response { val realChain = chain as RealInterceptorChain
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue May 27 14:58:02 UTC 2025 - 12.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTransportPoolImplTest.java
// Set fail counts (addr1 has more failures, addr2 has fewer) pool.failCounts.put("10.0.0.1", 5); pool.failCounts.put("10.0.0.2", 1); // Create spy to intercept calls SmbTransportPoolImpl poolSpy = spy(pool); when(ctx.getTransportPool()).thenReturn(poolSpy); // Mock transports SmbTransportImpl trans1 = mock(SmbTransportImpl.class);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 19.2K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcHandleTest.java
class BindOperationTests { @Test @DisplayName("Should execute bind operation successfully") void testBindSuccess() throws DcerpcException, IOException { // Given: Spy to intercept sendrecv calls TestDcerpcHandle spyHandle = spy(new TestDcerpcHandle(mockContext, mockBinding)); doNothing().when(spyHandle).sendrecv(any(DcerpcMessage.class));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.3K bytes - Viewed (0)