Search Options

Results per page
Sort
Preferred Languages
Advance

Results 431 - 440 of 920 for executeOn (0.06 sec)

  1. docs/en/docs/reference/exceptions.md

    # Exceptions - `HTTPException` and `WebSocketException`
    
    These are the exceptions that you can raise to show errors to the client.
    
    When you raise an exception, as would happen with normal Python, the rest of the execution is aborted. This way you can raise these exceptions from anywhere in the code to abort a request and show the error to the client.
    
    You can use:
    
    * `HTTPException`
    * `WebSocketException`
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 597 bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/query/PhraseQueryCommandTest.java

            // Test execute method with valid phrase query
            PhraseQuery.Builder builder = new PhraseQuery.Builder();
            builder.add(new Term(Constants.DEFAULT_FIELD, "test"));
            PhraseQuery phraseQuery = builder.build();
    
            QueryContext context = new QueryContext("test", false);
            QueryBuilder result = queryCommand.execute(context, phraseQuery, 1.0f);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  3. api/maven-api-plugin/src/main/java/org/apache/maven/api/plugin/descriptor/package-info.java

     * specific language governing permissions and limitations
     * under the License.
     */
    
    /**
     * Provides classes for Maven plugin descriptors that define plugin metadata, configuration,
     * and execution parameters. These descriptors are typically stored in plugin.xml files
     * within the META-INF/maven directory of plugin JARs.
     *
     * @since 4.0.0
     */
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Tue Mar 04 14:17:18 UTC 2025
    - 1.1K bytes
    - Viewed (0)
  4. okhttp/src/commonTest/kotlin/okhttp3/CompressionInterceptorTest.kt

                .body("Hello".toResponseBody())
                .header("Content-Encoding", "piedpiper")
                .build()
            }.build()
    
        val response = client.newCall(Request("https://google.com/robots.txt".toHttpUrl())).execute()
    
        assertThat(response.header("Content-Encoding")).isEqualTo("piedpiper")
        assertThat(response.body.string()).isEqualTo("Hello")
      }
    
      @Test
      fun gzipThroughCall() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Aug 01 06:04:22 UTC 2025
    - 3K bytes
    - Viewed (0)
  5. okhttp-zstd/src/test/java/okhttp3/zstd/ZstdTestMain.kt

      sendRequest("https://www.instagram.com/robots.txt", client)
    }
    
    private fun sendRequest(
      url: String,
      client: OkHttpClient,
    ) {
      val req = Request.Builder().url(url).build()
    
      client.newCall(req).execute().use {
        println(url)
        println("""Content-Encoding: ${it.networkResponse?.header("Content-Encoding")}""")
        println("| ${it.body.string().replace("\n", "\n| ")}")
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Jul 29 20:01:04 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  6. regression-test/src/androidTest/java/okhttp/regression/compare/OkHttpClientTest.java

        OkHttpClient client = new OkHttpClient();
        Request request = new Request.Builder()
            .url("https://google.com/robots.txt")
            .build();
        try (Response response = client.newCall(request).execute()) {
          assertEquals(200, response.code());
          assertEquals(Protocol.HTTP_2, response.protocol());
        }
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Nov 14 17:38:22 UTC 2020
    - 1.4K bytes
    - Viewed (0)
  7. compat/maven-compat/src/main/java/org/apache/maven/execution/DefaultRuntimeInformation.java

     * KIND, either express or implied.  See the License for the
     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.execution;
    
    import javax.inject.Inject;
    import javax.inject.Named;
    import javax.inject.Singleton;
    
    import org.apache.maven.artifact.versioning.ArtifactVersion;
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 2K bytes
    - Viewed (0)
  8. docs/features/https.md

              .build()
    
          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) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Dec 24 00:16:30 UTC 2022
    - 10.5K bytes
    - Viewed (0)
  9. samples/guide/src/main/java/okhttp3/recipes/PrintEventsNonConcurrent.java

        System.out.println("REQUEST 1 (new connection)");
        try (Response response = client.newCall(request).execute()) {
          // Consume and discard the response body.
          response.body().source().readByteString();
        }
    
        System.out.println("REQUEST 2 (pooled connection)");
        try (Response response = client.newCall(request).execute()) {
          // Consume and discard the response body.
          response.body().source().readByteString();
        }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Feb 16 23:20:49 UTC 2020
    - 5.3K bytes
    - Viewed (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/internal/http/ThreadInterruptTest.kt

                    }
                    fail("Expected connection to be closed")
                  }
                },
              ).build(),
          )
        interruptLater(500)
        assertFailsWith<IOException> {
          call.execute()
        }
      }
    
      @Test
      fun interruptReadingResponseBody() {
        val responseBodySize = 8 * 1024 * 1024 // 8 MiB.
        server.enqueue(
          MockResponse()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:30:11 UTC 2025
    - 6.1K bytes
    - Viewed (0)
Back to top