Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 156 for isSuccessful (0.04 sec)

  1. docs/recipes.md

            val request = Request.Builder()
                .url("https://publicobject.com/helloworld.txt")
                .build()
    
            client.newCall(request).execute().use { response ->
              if (!response.isSuccessful) throw IOException("Unexpected code $response")
    
              for ((name, value) in response.headers) {
                println("$name: $value")
              }
    
              println(response.body!!.string())
            }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 17:01:12 UTC 2025
    - 47.8K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/processor/impl/DefaultResponseProcessor.java

        }
    
        /**
         * Gets the successful HTTP codes.
         *
         * @return the successful HTTP codes
         */
        public int[] getSuccessfulHttpCodes() {
            return successfulHttpCodes;
        }
    
        /**
         * Sets the successful HTTP codes.
         *
         * @param successfulHttpCodes the successful HTTP codes to set
         */
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Aug 07 02:55:08 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  3. docs/features/https.md

          fun run() {
            val request = Request.Builder()
                .url("https://publicobject.com/robots.txt")
                .build()
    
            client.newCall(request).execute().use { response ->
              if (!response.isSuccessful) throw IOException("Unexpected code $response")
    
              for (certificate in response.handshake!!.peerCertificates) {
                println(CertificatePinner.pin(certificate))
              }
            }
          }
        ```
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Dec 24 00:16:30 UTC 2022
    - 10.5K bytes
    - Viewed (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Response.kt

      )
      fun code(): Int = code
    
      /**
       * Returns true if the code is in [200..300), which means the request was successfully received,
       * understood, and accepted.
       */
      val isSuccessful: Boolean = code in 200..299
    
      @JvmName("-deprecated_message")
      @Deprecated(
        message = "moved to val",
        replaceWith = ReplaceWith(expression = "message"),
        level = DeprecationLevel.ERROR,
      )
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 28 14:39:28 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt

        val response: Response = Response.Builder().build()
        val request: Request = response.request
        val protocol: Protocol = response.protocol
        val code: Int = response.code
        val successful: Boolean = response.isSuccessful
        val message: String = response.message
        val handshake: Handshake? = response.handshake
        val headersForName: List<String> = response.headers("")
        val header: String? = response.header("")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jun 21 20:36:35 UTC 2025
    - 46.5K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/DuplexTest.kt

          client
            .newBuilder()
            .readTimeout(1000, TimeUnit.MILLISECONDS)
            .build()
        val call = client.newCall(request)
        val response = call.execute()
        assertThat(response.isSuccessful).isTrue()
      }
    
      /**
       * We delay sending the last byte of the request body 1500 ms. The 1000 ms read timeout shouldn't
       * elapse because it shouldn't start until the request body is sent.
       */
      @Test
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  7. docs/changelogs/changelog_2x.md

        ```java
        Headers headers = Headers.of(name1, value1, name2, value2, ...).
        ```
    
     *  New: Make the content-type header optional for request bodies.
     *  New: `Response.isSuccessful()` is a convenient API to check response codes.
     *  New: The response body can now be read outside of the callback. Response
        bodies must always be closed, otherwise they will leak connections!
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Feb 06 02:19:09 UTC 2022
    - 26.6K bytes
    - Viewed (0)
  8. src/main/config/openapi/openapi-user.yaml

              in: query
              description: Callback name for using JSONP
              required: false
              schema:
                type: string
          responses:
            '200':
              description: Successful operation
              content:
                application/json:
                  schema:
                    type: object
                    properties:
                      q:
                        type: string
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu May 09 06:31:27 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/job/PurgeDocJobTest.java

            RangeQueryBuilder rangeQuery = (RangeQueryBuilder) deleteQuery;
            assertEquals("expires", rangeQuery.fieldName());
            assertEquals("now", rangeQuery.to());
    
            // Assert result is empty when successful
            assertEquals("", result);
        }
    
        public void test_execute_withException() {
            // Create mock SearchEngineClient that throws exception
            searchEngineClient = new SearchEngineClient() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 16.1K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/persistent/PersistentHandleManager.java

            HandleGuid guid = new HandleGuid();
    
            // Create handle info with empty file ID (will be populated after successful create response)
            HandleInfo info = new HandleInfo(path, guid, new byte[16], type, timeout, leaseKey);
    
            lock.writeLock().lock();
            try {
                handles.put(path, info);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:49:49 UTC 2025
    - 13K bytes
    - Viewed (0)
Back to top