- Sort Score
- Num 10 results
- Language All
Results 71 - 80 of 340 for Chains (0.04 seconds)
-
samples/guide/src/main/java/okhttp3/recipes/RewriteResponseCacheControl.java
public final class RewriteResponseCacheControl { /** Dangerous interceptor that rewrites the server's cache-control header. */ private static final Interceptor REWRITE_CACHE_CONTROL_INTERCEPTOR = chain -> { Response originalResponse = chain.proceed(chain.request()); return originalResponse.newBuilder() .header("Cache-Control", "max-age=60") .build(); }; private final OkHttpClient client;Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sat Jan 12 03:31:36 GMT 2019 - 2.6K bytes - Click Count (0) -
samples/guide/src/main/java/okhttp3/recipes/CurrentDateHeader.java
@Override public Response intercept(Chain chain) throws IOException { Request request = chain.request(); Headers newHeaders = request.headers() .newBuilder() .add("Date", new Date()) .build(); Request newRequest = request.newBuilder() .headers(newHeaders) .build(); return chain.proceed(newRequest); } }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Oct 31 15:32:50 GMT 2018 - 1.8K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/suggest/util/SuggestUtil.java
final ReadingConverterChain chain = new ReadingConverterChain(); chain.addConverter(new AnalyzerConverter(client, settings)); chain.addConverter(new KatakanaToAlphabetConverter()); return chain; } /** * Creates a default ReadingConverterChain with a KatakanaToAlphabetConverter. *
Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Sun Nov 23 11:21:40 GMT 2025 - 17.5K bytes - Click Count (1) -
samples/guide/src/main/java/okhttp3/recipes/PreemptiveAuth.java
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Mon Nov 05 07:46:46 GMT 2018 - 2.1K bytes - Click Count (0) -
docs/fr/docs/advanced/custom-response.md
Vous pouvez la renvoyer directement. Elle accepte les paramètres suivants : - `content` - Une `str` ou des `bytes`. - `status_code` - Un code d'état HTTP de type `int`. - `headers` - Un `dict` de chaînes. - `media_type` - Une `str` donnant le media type. Par exemple « text/html ».
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:37:13 GMT 2026 - 12.3K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/suggest/converter/ReadingConverterChainTest.java
public void test_convert() throws Exception { /* * TODO ReadingConverterChain chain = new ReadingConverterChain(); chain.addConverter(new KatakanaConverter()); * chain.addConverter(new KatakanaToAlphabetConverter()); chain.init(); * * List<String> list = chain.convert("検索"); assertTrue(list.contains("ケンサク")); * assertTrue(list.contains("kennsaku")); */ }
Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Sat Mar 15 06:51:20 GMT 2025 - 1.2K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Mar 10 21:47:20 GMT 2026 - 49.7K bytes - Click Count (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/TlsUtil.kt
chain[0] = heldCertificate.certificate intermediates.copyInto(chain, 1) keyStore.setKeyEntry("private", heldCertificate.keyPair.private, password, chain) } // https://github.com/bcgit/bc-java/issues/1160 val isBouncyCastle = keyStore.provider.name == "BC" val algorithm = if (isBouncyCastle) "PKIX" else KeyManagerFactory.getDefaultAlgorithm() val factory = KeyManagerFactory.getInstance(algorithm)Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 4.3K bytes - Click Count (1) -
src/main/java/org/codelibs/fess/filter/LoadControlFilter.java
// Default constructor } @Override public void doFilter(final ServletRequest request, final ServletResponse response, final FilterChain chain) throws IOException, ServletException { if (!ComponentUtil.available()) { chain.doFilter(request, response); return; } final HttpServletRequest httpRequest = (HttpServletRequest) request;Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Tue Feb 10 04:24:02 GMT 2026 - 4.8K bytes - Click Count (0) -
okhttp/src/commonTest/kotlin/okhttp3/CompressionInterceptorTest.kt
val client = clientTestRule .newClientBuilder() .addInterceptor(empty) .addInterceptor { chain -> assertThat(chain.request().header("Accept-Encoding")).isNull() Response .Builder() .request(chain.request()) .protocol(Protocol.HTTP_1_1) .code(200) .message("OK") .body("Hello".toResponseBody())Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Aug 01 06:04:22 GMT 2025 - 3K bytes - Click Count (0)