Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for urlconnection (0.04 sec)

  1. okhttp-urlconnection/README.md

    OkHttp URLConnection
    ====================
    
    This module integrates OkHttp with `Authenticator` and `CookieHandler` from `java.net`.
    
    This module is obsolete; prefer `okhttp-java-net-cookiejar`.
    
    ### Download
    
    ```kotlin
    testImplementation("com.squareup.okhttp3:okhttp-urlconnection:5.1.0")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 07 19:32:33 UTC 2025
    - 292 bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/net/URLUtil.java

         * @param url
         *            The URL. Must not be {@literal null}.
         * @return A {@link URLConnection} object to the URL.
         */
        public static URLConnection openConnection(final URL url) {
            assertArgumentNotNull("url", url);
    
            try {
                final URLConnection connection = url.openConnection();
                connection.setUseCaches(false);
                return connection;
            } catch (final IOException e) {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/net/MimeTypeUtil.java

            final InputStream is = ResourceUtil.getResourceAsStream(path);
            try {
                final String mimetype = URLConnection.guessContentTypeFromStream(is);
                if (mimetype != null) {
                    return mimetype;
                }
                return URLConnection.guessContentTypeFromName(path);
            } catch (final IOException e) {
                throw new IORuntimeException(e);
            } finally {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/jar/JarFileUtil.java

    import java.io.File;
    import java.io.IOException;
    import java.io.InputStream;
    import java.net.JarURLConnection;
    import java.net.URL;
    import java.net.URLConnection;
    import java.util.jar.JarFile;
    import java.util.zip.ZipEntry;
    
    import org.codelibs.core.exception.IORuntimeException;
    import org.codelibs.core.io.FileUtil;
    import org.codelibs.core.log.Logger;
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  5. okhttp-java-net-cookiejar/README.md

    OkHttp java.net.CookieHandler
    =============================
    
    This module integrates OkHttp with `CookieHandler` from `java.net`.
    This used to be part of `okhttp-urlconnection`
    
    ### Download
    
    ```kotlin
    testImplementation("com.squareup.okhttp3:okhttp-java-net-cookiehandler:5.1.0")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 07 19:32:33 UTC 2025
    - 284 bytes
    - Viewed (0)
  6. settings.gradle.kts

    include(":okhttp-java-net-cookiejar")
    include(":okhttp-logging-interceptor")
    include(":okhttp-osgi-tests")
    include(":okhttp-sse")
    include(":okhttp-testing-support")
    include(":okhttp-tls")
    include(":okhttp-urlconnection")
    include(":okhttp-zstd")
    include(":samples:compare")
    include(":samples:crawler")
    include(":samples:guide")
    include(":samples:simple-client")
    include(":samples:slack")
    include(":samples:static-server")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jul 19 13:41:00 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  7. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

            .setBody("ABC")
            .clearHeaders()
            .addHeader("Content-Length: 4"),
        )
        server.enqueue(MockResponse().setBody("DEF"))
        val urlConnection = server.url("/").toUrl().openConnection()
        urlConnection.setReadTimeout(1000)
        val inputStream = urlConnection.getInputStream()
        assertThat(inputStream.read()).isEqualTo('A'.code)
        assertThat(inputStream.read()).isEqualTo('B'.code)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 03 13:16:34 UTC 2025
    - 22.3K bytes
    - Viewed (0)
  8. mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt

            .build(),
        )
        server.enqueue(
          MockResponse
            .Builder()
            .body("DEF")
            .build(),
        )
        val urlConnection = server.url("/").toUrl().openConnection()
        urlConnection!!.readTimeout = 1000
        val inputStream = urlConnection.getInputStream()
        assertThat(inputStream!!.read()).isEqualTo('A'.code)
        assertThat(inputStream.read()).isEqualTo('B'.code)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Aug 03 22:38:00 UTC 2025
    - 28K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt

        call.cancel()
        assertFailsWith<IOException> {
          call.execute()
        }
      }
    
      @Test
      fun defaultRequestProperty() {
        URLConnection.setDefaultRequestProperty("X-testSetDefaultRequestProperty", "A")
        assertThat(URLConnection.getDefaultRequestProperty("X-setDefaultRequestProperty")).isNull()
      }
    
      /**
       * Reads `count` characters from the stream. If the stream is exhausted before `count`
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jun 21 20:36:35 UTC 2025
    - 133.2K bytes
    - Viewed (0)
  10. gradle/wrapper/gradle-wrapper.jar

    convertSystemPropert(java.util.Properties); public void Download(Logger, java.util.HashMap, int); public static java.net.URI safeUri(java.net.URI); public final void configureProxyAuthen(); public final void addBasicAuthenticati(java.net.URI, java.net.URLConnection); public final String calculateUserAgent(); } org/gradle/wrapper/GradleUserHomeLookup.class package org.gradle.wrapper; public abstract class GradleUserHomeLookup { public static final String DEFAULT_GRADLE_USER_HOME; static void <clinit>(); }...
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Aug 01 08:06:31 UTC 2025
    - 44.4K bytes
    - Viewed (1)
Back to top