Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 121 - 130 of 2,544 for request (0.07 seconds)

  1. src/test/java/jcifs/internal/CommonServerMessageBlockRequestTest.java

            // Given
            when(request.isResponseAsync()).thenReturn(true);
            when(request.size()).thenReturn(100);
            when(request.getOverrideTimeout()).thenReturn(3000);
            when(request.allowChain(any())).thenReturn(true);
    
            // When
            boolean async = request.isResponseAsync();
            int size = request.size();
            Integer timeout = request.getOverrideTimeout();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.1K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/curl/CurlRequestTest.java

            assertNull(request.body());
        }
    
        @Test
        public void testConstructorWithNullUrl() {
            // URL can be null with the two-argument constructor
            CurlRequest request = new CurlRequest(Method.DELETE, null);
    
            assertEquals(Method.DELETE, request.method());
            assertEquals("UTF-8", request.encoding());
            assertEquals(1024 * 1024, request.threshold());
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 09:11:12 GMT 2026
    - 24.7K bytes
    - Click Count (0)
  3. docs/features/interceptors.md

    ```java
    class LoggingInterceptor implements Interceptor {
      @Override public Response intercept(Interceptor.Chain chain) throws IOException {
        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()));
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 8.1K bytes
    - Click Count (0)
  4. mockwebserver/src/main/kotlin/mockwebserver3/RecordedRequest.kt

      /** A string like `GET` or `POST`. */
      public val method: String,
      /**
       * The request target from the original HTTP request.
       *
       * For origin-form requests this is a path like `/index.html`, that is combined with the `Host`
       * header to create the request URL.
       *
       * For HTTP proxy requests this will be either an absolute-form string like
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sat Jun 21 20:36:35 GMT 2025
    - 3.2K bytes
    - Click Count (1)
  5. src/main/java/org/codelibs/fess/llm/AbstractLlmClient.java

            }
    
            final LlmChatRequest request = new LlmChatRequest();
            request.addSystemMessage(resolvedPrompt);
            addHistoryWithBudget(request, history, getHistoryMaxChars());
            request.addUserMessage(wrapUserInput(userMessage));
            applyPromptTypeParams(request, "faq");
            request.setStream(true);
    
            streamChatWithConcurrencyControl(request, callback);
        }
    
        /**
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 21 06:04:58 GMT 2026
    - 72K bytes
    - Click Count (0)
  6. docs/features/calls.md

    The response answers the request with a code (like 200 for success or 404 for not found), headers, and its own optional body.
    
    ## Rewriting Requests
    
    When you provide OkHttp with an HTTP request, you’re describing the request at a high-level: _“fetch me this URL with these headers.”_ For correctness and efficiency, OkHttp rewrites your request before transmitting it.
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:01:42 GMT 2026
    - 3.9K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/helper/UserInfoHelperTest.java

            buf.append("12345ABCDE");
            request.setParameter("userCode", buf.toString());
            assertEquals("12345abcde12345ABCDE", userInfoHelper.getUserCodeFromRequest(request));
            request.setParameter("userCode", buf.toString() + "_");
            assertEquals("12345abcde12345ABCDE_", userInfoHelper.getUserCodeFromRequest(request));
            request.setParameter("userCode", buf.toString() + " ");
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 12.8K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/curl/CurlTest.java

            // ## Act ##
            final CurlRequest request1 = Curl.get("http://example.com");
            final CurlRequest request2 = Curl.get("http://example.com");
    
            // ## Assert ##
            assertNotNull(request1);
            assertNotNull(request2);
            assertTrue("Factory methods should return different instances", request1 != request2);
        }
    
        @Test
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Thu Nov 20 13:34:13 GMT 2025
    - 16.3K bytes
    - Click Count (0)
  9. impl/maven-core/src/main/java/org/apache/maven/execution/MavenExecutionRequestPopulator.java

         *
         * @param request The execution request to populate, must not be {@code null}.
         * @param toolchains The toolchains to copy into the execution request, may be {@code null}.
         * @return The populated execution request, never {@code null}.
         * @throws MavenExecutionRequestPopulationException If the execution request could not be populated.
         * @since 3.3.0
         */
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 3.4K bytes
    - Click Count (0)
  10. docs/recipes.md

        ```java
          private final OkHttpClient client = new OkHttpClient();
    
          public void run() throws Exception {
            Request request = new Request.Builder()
                .url("https://publicobject.com/helloworld.txt")
                .build();
    
            try (Response response = client.newCall(request).execute()) {
              if (!response.isSuccessful()) throw new IOException("Unexpected code " + response);
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:01:42 GMT 2026
    - 47.8K bytes
    - Click Count (0)
Back to Top