Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 317 for contentType (0.38 sec)

  1. okhttp-testing-support/src/main/kotlin/okhttp3/ForwardingRequestBody.kt

    open class ForwardingRequestBody(
      delegate: RequestBody?,
    ) : RequestBody() {
      private val delegate: RequestBody
    
      fun delegate(): RequestBody = delegate
    
      override fun contentType(): MediaType? = delegate.contentType()
    
      @Throws(IOException::class)
      override fun contentLength(): Long = delegate.contentLength()
    
      @Throws(IOException::class)
      override fun writeTo(sink: BufferedSink) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  2. docs/debugging/s3-verify/main.go

    	if srcCtnt.Size != tgtCtnt.Size {
    		fmt.Printf("differ in size sourceSize: %d, targetSize: %d\n", srcCtnt.Size, tgtCtnt.Size)
    		return false
    	} else if srcCtnt.ContentType != tgtCtnt.ContentType {
    		fmt.Printf("differ in contentType source: %s, target: %s\n", srcCtnt.ContentType, tgtCtnt.ContentType)
    		return false
    	}
    
    	core := minio.Core{Client: sclnt}
    	sobj, _, _, err := core.GetObject(context.Background(), sourceBucket, srcCtnt.Key, opts)
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Jun 22 15:12:47 UTC 2022
    - 8.4K bytes
    - Viewed (0)
  3. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/storage/StorageClientTest.java

                    .contentType("application/octet-stream")
                    .build());
            minioClient.putObject(PutObjectArgs.builder()
                    .bucket(bucketName)
                    .object("dir1/file2.txt")
                    .stream(new ByteArrayInputStream("file2".getBytes()), 5, -1)
                    .contentType("application/octet-stream")
                    .build());
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Aug 07 02:55:08 UTC 2025
    - 13.8K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/TikaExtractor.java

            if (StringUtil.isNotEmpty(resourceName)) {
                metadata.set(ExtractData.RESOURCE_NAME_KEY, resourceName);
            }
            if (StringUtil.isNotBlank(contentType)) {
                metadata.set(ExtractData.CONTENT_TYPE, contentType);
            }
            if (StringUtil.isNotBlank(contentEncoding)) {
                metadata.set(ExtractData.CONTENT_ENCODING, contentEncoding);
            }
            if (pdfPassword != null) {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Aug 07 02:55:08 UTC 2025
    - 30.7K bytes
    - Viewed (0)
  5. samples/crawler/src/main/java/okhttp3/sample/Crawler.java

          System.out.printf("%03d: %s %s%n", responseCode, url, responseSource);
    
          String contentType = response.header("Content-Type");
          if (responseCode != 200 || contentType == null) {
            return;
          }
    
          MediaType mediaType = MediaType.parse(contentType);
          if (mediaType == null || !mediaType.subtype().equalsIgnoreCase("html")) {
            return;
          }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jul 23 00:58:06 UTC 2025
    - 5K bytes
    - Viewed (0)
  6. okcurl/src/test/kotlin/okhttp3/curl/MainTest.kt

        val body = request.body
        assertThat(request.method).isEqualTo("POST")
        assertThat(request.url.toString()).isEqualTo("http://example.com/")
        assertThat(body!!.contentType().toString()).isEqualTo(
          "application/x-www-form-urlencoded; charset=utf-8",
        )
        assertThat(bodyAsString(body)).isEqualTo("foo")
      }
    
      @Test
      fun dataPut() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/mylasta/direction/sponsor/FessMultipartRequestHandler.java

            return new JakartaServletDiskFileUpload(fileItemFactory) {
                @Override
                public byte[] getBoundary(final String contentType) { // for security
                    final byte[] boundary = super.getBoundary(contentType);
                    checkBoundarySize(contentType, boundary);
                    return boundary;
                }
            };
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Mar 15 06:53:53 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  8. samples/guide/src/main/java/okhttp3/recipes/kt/UploadProgress.kt

        }
      }
    
      private class ProgressRequestBody(
        private val delegate: RequestBody,
        private val progressListener: ProgressListener,
      ) : RequestBody() {
        override fun contentType() = delegate.contentType()
    
        @Throws(IOException::class)
        override fun contentLength(): Long = delegate.contentLength()
    
        @Throws(IOException::class)
        override fun writeTo(sink: BufferedSink) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 17:01:12 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  9. cmd/api-headers.go

    	// Set Etag if available.
    	if objInfo.ETag != "" {
    		w.Header()[xhttp.ETag] = []string{"\"" + objInfo.ETag + "\""}
    	}
    
    	if objInfo.ContentType != "" {
    		w.Header().Set(xhttp.ContentType, objInfo.ContentType)
    	}
    
    	if objInfo.ContentEncoding != "" {
    		w.Header().Set(xhttp.ContentEncoding, objInfo.ContentEncoding)
    	}
    
    	if !objInfo.Expires.IsZero() {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/ResponseBodyTest.kt

        assertThat(source.readUtf8()).isEqualTo("")
      }
    
      @Test
      fun sourceClosesUnderlyingSource() {
        var closed = false
    
        val body: ResponseBody =
          object : ResponseBody() {
            override fun contentType(): MediaType? = null
    
            override fun contentLength(): Long = 5
    
            override fun source(): BufferedSource {
              val source = Buffer().writeUtf8("hello")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 3.9K bytes
    - Viewed (0)
Back to top