- Sort Score
- Result 10 results
- Languages All
Results 3511 - 3520 of 3,960 for trying (0.03 sec)
-
okcurl/src/main/kotlin/okhttp3/curl/internal/-MainCommon.kt
return@let parts[1].trim() } } return@let null } ?: "application/x-www-form-urlencoded" return mimeType.toMediaTypeOrNull() } private fun isSpecialHeader(s: String): Boolean = s.equals("Content-Type", ignoreCase = true) fun Main.commonRun() { client = createClient() val request = createRequest() try { val response = client!!.newCall(request).execute()
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 2.7K bytes - Viewed (0) -
okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/TestDohMain.kt
import okhttp3.OkHttpClient import okhttp3.dnsoverhttps.DohProviders.providers import org.conscrypt.OpenSSLProvider private fun runBatch( dnsProviders: List<DnsOverHttps>, names: List<String>, ) { var time = System.currentTimeMillis() for (dns in dnsProviders) { println("Testing ${dns.url}") for (host in names) { print("$host: ") System.out.flush() try {
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 3.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/cors/DefaultCorsHandler.java
* * @param origin the origin of the request * @param request the servlet request * @param response the servlet response to add CORS headers to */ @Override public void process(final String origin, final ServletRequest request, final ServletResponse response) { final FessConfig fessConfig = ComponentUtil.getFessConfig(); final HttpServletResponse httpResponse = (HttpServletResponse) response;Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/util/RenderDataUtil.java
* @param key the key to associate with the value * @param value the value to register; can be null, Entity, Collection, or any other object */ public static void register(final RenderData data, final String key, final Object value) { if (value == null) { return; } if (value instanceof Entity) { data.register(key, BeanUtil.copyBeanToNewMap(value)); } else {Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 2.6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/AbstractCollectionTester.java
* to {@code contains(null)} is permitted to throw a {@code NullPointerException}. * * @param message message to use upon assertion failure */ protected void expectNullMissingWhenNullUnsupported(String message) { try { assertFalse(message, actualContents().contains(null)); } catch (NullPointerException tolerated) { // Tolerated } }Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Jan 18 02:54:30 UTC 2025 - 2.8K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/transform/DefaultArtifactTransformationManager.java
public class DefaultArtifactTransformationManager implements ArtifactTransformationManager { private List<ArtifactTransformation> artifactTransformations; @Inject public DefaultArtifactTransformationManager(Map<String, ArtifactTransformation> artifactTransformations) { this.artifactTransformations = Stream.of("release", "latest", "snapshot") .map(artifactTransformations::get) .filter(Objects::nonNull)Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Jun 06 14:28:57 UTC 2025 - 3.6K bytes - Viewed (0) -
docs/features/interceptors.md
Request request = chain.request(); long t1 = System.nanoTime(); logger.info(String.format("Sending request %s on %s%n%s", request.url(), chain.connection(), request.headers())); Response response = chain.proceed(request); long t2 = System.nanoTime(); logger.info(String.format("Received response for %s in %.1fms%n%s", response.request().url(), (t2 - t1) / 1e6d, response.headers()));
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Sun Feb 06 02:19:09 UTC 2022 - 8.1K bytes - Viewed (0) -
src/test/java/org/codelibs/core/lang/StringUtilTest.java
@Test public void testSplit() throws Exception { final String[] array = StringUtil.split("aaa\nbbb", "\n"); assertEquals("1", 2, array.length); assertEquals("2", "aaa", array[0]); assertEquals("3", "bbb", array[1]); } /** * */ @Test public void testSplit2() { final String[] array = StringUtil.split("aaa, bbb", ", ");Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat Nov 22 11:21:59 UTC 2025 - 11.4K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/MultipartBodyTest.kt
val buffer = Buffer() body.writeTo(buffer) assertThat(buffer.readUtf8()).isEqualTo(expected) } @Test fun streamingPartHasNoLength() { class StreamingBody( private val body: String, ) : RequestBody() { override fun contentType(): MediaType? = null @Throws(IOException::class) override fun writeTo(sink: BufferedSink) { sink.writeUtf8(body) } }
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 10.5K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/CacheInterceptor.kt
} return result.build() } /** * Returns true if [fieldName] is an end-to-end HTTP header, as defined by RFC 2616, * 13.5.1. */ private fun isEndToEnd(fieldName: String): Boolean = !"Connection".equals(fieldName, ignoreCase = true) && !"Keep-Alive".equals(fieldName, ignoreCase = true) && !"Proxy-Authenticate".equals(fieldName, ignoreCase = true) &&Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Nov 05 18:28:35 UTC 2025 - 10.3K bytes - Viewed (0)