Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 54 for conn (0.03 sec)

  1. mockwebserver/src/test/java/mockwebserver3/CustomDispatcherTest.kt

        path: String,
        responseCode: AtomicInteger,
      ): Thread =
        Thread {
          val url = mockWebServer.url(path).toUrl()
          val conn: HttpURLConnection
          try {
            conn = url.openConnection() as HttpURLConnection
            responseCode.set(conn.responseCode) // Force the connection to hit the "server".
          } catch (ignored: IOException) {
          }
        }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/net/JarURLConnectionUtil.java

         *
         * @param conn
         *            {@link JarURLConnection}. Must not be {@literal null}.
         * @return {@link JarFile}
         */
        public static JarFile getJarFile(final JarURLConnection conn) {
            assertArgumentNotNull("conn", conn);
    
            try {
                return conn.getJarFile();
            } catch (final IOException e) {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  3. regression-test/src/androidTest/java/okhttp/regression/compare/AndroidHttpEngineTest.kt

        req.start()
        return completableFuture
      }
    
      @Test
      fun urlConnection() {
        val conn = engine.openConnection(URL("https://google.com/robots.txt")) as HttpURLConnection
    
        val text =
          conn.inputStream.use {
            it.bufferedReader().readText()
          }
    
        assertEquals(200, conn.responseCode)
    
        assertTrue(text.contains("Disallow"))
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/curl/CurlRequestTest.java

        }
    
        @Test
        public void testOnConnectMethod() {
            CurlRequest request = new CurlRequest(Method.GET, "https://example.com");
    
            CurlRequest result = request.onConnect((req, conn) -> {
                conn.setConnectTimeout(5000);
            });
    
            assertSame(request, result); // Fluent API
        }
    
        @Test
        public void testParamMethod() {
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Thu Jul 31 01:01:12 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  5. okhttp/src/jvmMain/resources/okhttp3/internal/publicsuffix/PublicSuffixDatabase.list

    com.ws
    com.ye
    com.zm
    commbank
    commune.am
    community
    community-pro.de
    community-pro.net
    como.it
    company
    compare
    computer
    comsec
    condos
    conf.au
    conf.lv
    conf.se
    conference.aero
    conn.uk
    construction
    consulado.st
    consultant.aero
    consulting
    consulting.aero
    contact
    contagem.br
    contractors
    control.aero
    convex.site
    cooking
    cool
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 22:00:49 UTC 2025
    - 129.6K bytes
    - Viewed (3)
  6. okhttp/src/androidMain/assets/PublicSuffixDatabase.list

    com.ws
    com.ye
    com.zm
    commbank
    commune.am
    community
    community-pro.de
    community-pro.net
    como.it
    company
    compare
    computer
    comsec
    condos
    conf.au
    conf.lv
    conf.se
    conference.aero
    conn.uk
    construction
    consulado.st
    consultant.aero
    consulting
    consulting.aero
    contact
    contagem.br
    contractors
    control.aero
    convex.site
    cooking
    cool
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Dec 31 14:50:53 UTC 2024
    - 129.6K bytes
    - Viewed (2)
  7. src/main/assemblies/files/service.bat

    set unit=%value:~-1%
    rem assume the unit is specified
    set conv=%value:~0,-1%
    
    if "%unit%" == "k" goto kilo
    if "%unit%" == "K" goto kilo
    if "%unit%" == "m" goto mega
    if "%unit%" == "M" goto mega
    if "%unit%" == "g" goto giga
    if "%unit%" == "G" goto giga
    
    rem no unit found, must be bytes; consider the whole value
    set conv=%value%
    rem convert to KB
    set /a conv=%conv% / 1024
    :kilo
    rem convert to MB
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sun Jan 15 06:32:15 UTC 2023
    - 6K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/core/io/ClassTraversalTest.java

            final String classFilePath = TestCase.class.getName().replace('.', '/') + ".class";
            final URL classURL = ResourceUtil.getResource(classFilePath);
            final JarURLConnection con = (JarURLConnection) classURL.openConnection();
            ClassTraversalUtil.forEach(con.getJarFile(), (ClassHandler) (packageName, shortClassName) -> {
                if (count < 10) {
                    System.out.println(ClassUtil.concatName(packageName, shortClassName));
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/util/ResourceUtilTest.java

        public void test_getConfPath() {
            Path confPath = ResourceUtil.getConfPath("test.conf");
            assertNotNull(confPath);
    
            // Test with empty names
            confPath = ResourceUtil.getConfPath();
            assertNotNull(confPath);
    
            // Test with multiple names
            confPath = ResourceUtil.getConfPath("dir1", "dir2", "file.conf");
            assertNotNull(confPath);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/util/ResourceUtil.java

        }
    
        /**
         * Gets the path to configuration files. In Docker environments, checks /opt/fess first,
         * then falls back to system property FESS_CONF_PATH, and finally to WEB-INF/conf.
         *
         * @param names the path components to append to the configuration directory
         * @return the Path object pointing to the configuration file or directory
         */
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 14.1K bytes
    - Viewed (0)
Back to top