Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 31 - 40 of 918 for consume (0.05 seconds)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt

        timeout.setDelegate(Timeout.NONE)
        oldDelegate.clearDeadline()
        oldDelegate.clearTimeout()
      }
    
      /**
       * The response body from a CONNECT should be empty, but if it is not then we should consume it
       * before proceeding.
       */
      fun skipConnectBody(response: Response) {
        val contentLength = response.headersContentLength()
        if (contentLength == -1L) return
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 17.6K bytes
    - Click Count (7)
  2. okhttp/src/jvmTest/kotlin/okhttp3/TrailersTest.kt

        delayBeforeTrailers(Protocol.HTTP_1_1)
      }
    
      @Test
      fun delayBeforeTrailersHttp2() {
        trailers(Protocol.HTTP_2)
      }
    
      /** Confirm the client will block if necessary to consume trailers. */
      private fun delayBeforeTrailers(protocol: Protocol) {
        enableProtocol(protocol)
    
        server.enqueue(
          MockResponse
            .Builder()
            .trailers(headersOf("t1", "v2"))
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 18.8K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/io/CharStreams.java

       * or all lines have been read and returning the result produced by the processor. Does not close
       * {@code readable}. Note that this method may not fully consume the contents of {@code readable}
       * if the processor stops processing early.
       *
       * <p><b>Users who can use {@code Stream}:</b> If your input is a {@link Reader}, consider
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 29 13:56:24 GMT 2025
    - 11.9K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/io/ByteSourceTest.java

            new ByteProcessor<@Nullable Void>() {
              boolean firstCall = true;
    
              @Override
              public boolean processBytes(byte[] buf, int off, int len) throws IOException {
                assertTrue("consume() called twice", firstCall);
                firstCall = false;
                return false;
              }
    
              @Override
              public @Nullable Void getResult() {
                return null;
              }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 15.6K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/app/web/admin/general/EditForm.java

        @Min(-1)
        @Max(1000)
        @ValidateTypeFailure
        public Integer dayForCleanup;
    
        /**
         * Number of threads to use for crawling operations.
         * Higher values increase crawling speed but consume more resources.
         */
        @Required
        @Min(0)
        @Max(100)
        @ValidateTypeFailure
        public Integer crawlingThreadCount;
    
        /**
         * Enable or disable search query logging.
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 02:24:08 GMT 2026
    - 15.8K bytes
    - Click Count (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Request.kt

       *   -X PUT \
       *   -H 'Authorization: Bearer token' \
       *   --data '{\"key\":\"value\"}'
       * ```
       *
       * **Note:** This will consume the request body. This may have side effects if the [RequestBody]
       * is streaming or can be consumed only once.
       */
      @JvmOverloads
      fun toCurl(includeBody: Boolean = true): String =
        buildString {
          append("curl ${url.toString().shellEscape()}")
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Oct 30 13:46:58 GMT 2025
    - 14.7K bytes
    - Click Count (1)
  7. src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java

            when(dr.getServer()).thenReturn("dfs-server");
            when(dr.getShare()).thenReturn("dfs-share");
            when(dr.getPath()).thenReturn("dfs/path");
            when(dr.getPathConsumed()).thenReturn(2); // consume leading \\ from UNC
    
            String newUnc = l.handleDFSReferral(dr, "\\req\\");
            // dunc is "\\" + path + remaining  - note: path may not have leading backslashes
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 17.6K bytes
    - Click Count (0)
  8. src/test/java/jcifs/internal/fscc/FileFsSizeInformationTest.java

                bb.putInt(512);
    
                // When
                int bytesConsumed = fileFsSizeInfo.decode(buffer, 0, buffer.length);
    
                // Then
                assertEquals(24, bytesConsumed); // Should always consume exactly 24 bytes
            }
    
            @Test
            @DisplayName("Should decode from middle of buffer correctly")
            void shouldDecodeFromMiddleOfBuffer() throws SMBProtocolDecodingException {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 25.9K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/io/CharSource.java

       * @since 33.4.0 (but since 22.0 in the JRE flavor)
       */
      /*
       * We have to rely on users not to call this without library desugaring, as NewApi won't flag
       * Consumer creation.
       */
      @IgnoreJRERequirement
      public void forEachLine(Consumer<? super String> action) throws IOException {
        try (Stream<String> lines = lines()) {
          // The lines should be ordered regardless in most cases, but use forEachOrdered to be sure
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 25.7K bytes
    - Click Count (0)
  10. src/test/java/jcifs/internal/fscc/FileFsFullSizeInformationTest.java

                // When
                int bytesConsumed = fileFsFullSizeInfo.decode(buffer, 0, buffer.length);
    
                // Then
                assertEquals(32, bytesConsumed); // Should always consume exactly 32 bytes
            }
    
            @Test
            @DisplayName("Should decode from middle of buffer correctly")
            void shouldDecodeFromMiddleOfBuffer() throws SMBProtocolDecodingException {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 30.5K bytes
    - Click Count (0)
Back to Top