Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for contentLength (0.35 sec)

  1. okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/HttpLoggingInterceptor.kt

            throw e
          }
    
          val tookMs = TimeUnit.NANOSECONDS.toMillis(System.nanoTime() - startNs)
    
          val responseBody = response.body!!
          val contentLength = responseBody.contentLength()
          val bodySize = if (contentLength != -1L) "$contentLength-byte" else "unknown-length"
          logger.log(
            buildString {
              append("<-- ${response.code}")
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Nov 07 02:57:33 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/s3/S3Client.java

                                        bucketName, path, headObject.contentLength(), maxCachedContentSize, outputFile.getAbsolutePath());
                            }
                        } catch (final Exception e) {
                            logger.warn("Failed to write S3 object to temp file: bucket={}, path={}, size={}, tempFile={}", bucketName, path,
                                    headObject.contentLength(), outputFile != null ? outputFile.getAbsolutePath() : "null", e);
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Dec 11 08:38:29 UTC 2025
    - 21.4K bytes
    - Viewed (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/HcHttpClient.java

                        final long contentLength = Long.parseLong(value);
                        if (contentLengthHelper != null) {
                            final long maxLength = contentLengthHelper.getMaxLength("text/plain");
                            if (contentLength > maxLength) {
                                throw new MaxLengthExceededException("The content length (" + contentLength + " byte) is over " + maxLength
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sun Nov 23 12:19:14 UTC 2025
    - 53.7K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/curl/CurlResponseTest.java

            String contentType = response.getHeaderValue("Content-Type");
            String contentLength = response.getHeaderValue("content-length"); // Test case insensitive
            String missing = response.getHeaderValue("Missing-Header");
    
            assertEquals("application/json", contentType);
            assertEquals("100", contentLength);
            assertNull(missing);
        }
    
        @Test
        public void testGetHeaderValues() {
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Thu Nov 20 13:34:13 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  5. fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/service/impl/OpenSearchDataService.java

         * Fields to fetch for access result list without data.
         */
        private static final String[] ACCESS_RESULT_FIELDS = { "parentUrl", "method", "mimeType", "sessionId", "url", "executionTime",
                "createTime", "contentLength", "lastModified", "ruleId", "httpStatusCode", "status" };
    
        /**
         * Creates a new instance of OpenSearchDataService.
         * @param crawlerConfig The crawler configuration.
         */
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Mon Nov 24 03:59:47 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/TikaExtractor.java

                    final long contentLength;
                    if (isByteStream) {
                        contentLength = ((ByteArrayInputStream) inputStream).available();
                    } else {
                        contentLength = tempFile != null ? tempFile.length() : 0;
                    }
                    extractData.putValue("Content-Length", Long.toString(contentLength));
    
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sun Nov 23 12:19:14 UTC 2025
    - 30.8K bytes
    - Viewed (0)
  7. fess-crawler-lasta/src/main/resources/crawler/client.xml

    	"http://dbflute.org/meta/lastadi10.dtd">
    <components namespace="fessCrawler">
    	<include path="crawler/container.xml" />
    	<include path="crawler/robotstxt.xml" />
    	<include path="crawler/contentlength.xml" />
    	<include path="crawler/mimetype.xml" />
    
    	<component name="internalHttpClient" class="org.codelibs.fess.crawler.client.http.HcHttpClient"
    		instance="prototype">
    		<property name="connectionTimeout">15000</property>
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Dec 11 08:38:29 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/storage/S3StorageClient.java

            try {
                final PutObjectRequest request =
                        PutObjectRequest.builder().bucket(bucket).key(objectName).contentType(contentType).contentLength(size).build();
                s3Client.putObject(request, RequestBody.fromInputStream(inputStream, size));
            } catch (final Exception e) {
                throw new StorageException("Failed to upload " + objectName, e);
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sat Dec 13 02:21:17 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  9. fess-crawler/src/main/java/org/codelibs/fess/net/protocol/s3/Handler.java

            @Override
            public long getContentLengthLong() {
                try {
                    if (!connected) {
                        connect();
                    }
                    return getHeadObject().contentLength();
                } catch (final IOException e) {
                    return -1;
                }
            }
    
            /**
             * Gets the content type of the S3 object.
             *
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Dec 11 07:57:44 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/TrailersTest.kt

            .code(200)
            .message("OK")
            .body(
              object : ResponseBody() {
                override fun contentType(): MediaType? = null
    
                override fun contentLength(): Long = -1L
    
                override fun source(): BufferedSource = error("unexpected call")
              },
            ).trailers(
              object : TrailersSource {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat Nov 08 21:45:04 UTC 2025
    - 18.8K bytes
    - Viewed (0)
Back to top