Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 419 for ContentType (0.31 sec)

  1. src/test/java/org/codelibs/core/net/MimeTypeUtilTest.java

            final String contentType = MimeTypeUtil.guessContentType(path);
            assertEquals("text/html", contentType);
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testGetFromStream_gif() throws Exception {
            final String path = ClassUtil.getPackageName(this.getClass()).replaceAll("\\.", "/") + "/ccc.gif";
            final String contentType = MimeTypeUtil.guessContentType(path);
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  2. platforms/software/resources-http/src/main/java/org/gradle/internal/resource/transport/http/RepeatableInputStreamEntity.java

        private final ReadableContent source;
    
        public RepeatableInputStreamEntity(ReadableContent source, ContentType contentType) {
            super();
            this.source = source;
            if (contentType != null) {
                setContentType(contentType.toString());
            }
        }
    
        @Override
        public boolean isRepeatable() {
            return true;
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/CommonRequestBodyTest.kt

      fun correctContentType() {
        val body = "Body"
        val requestBody = body.toRequestBody(MediaType("text/plain", "text", "plain", arrayOf()))
    
        val contentType = requestBody.contentType()!!
    
        assertThat(contentType.mediaType).isEqualTo("text/plain; charset=utf-8")
        assertThat(contentType.parameter("charset")).isEqualTo("utf-8")
      }
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Dec 20 23:27:07 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  4. cmd/postpolicyform_test.go

    		// Incorrect ContentType
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Apr 23 18:58:53 UTC 2021
    - 8.9K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/helper/OsddHelper.java

            this.osddPath = osddPath;
        }
    
        public void setEncoding(final String encoding) {
            this.encoding = encoding;
        }
    
        public void setContentType(final String contentType) {
            this.contentType = contentType;
        }
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  6. platforms/software/resources-http/src/main/java/org/gradle/internal/resource/transport/http/ApacheDirectoryListingParser.java

        public List<String> parse(URI baseURI, InputStream content, String contentType) throws Exception {
            baseURI = addTrailingSlashes(baseURI);
            if (contentType == null || !contentType.startsWith("text/html")) {
                throw new ResourceException(baseURI, String.format("Unsupported ContentType %s for directory listing '%s'", contentType, baseURI));
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/-RequestBodyCommon.kt

    import okio.BufferedSink
    import okio.ByteString
    
    fun ByteArray.commonToRequestBody(
      contentType: MediaType?,
      offset: Int,
      byteCount: Int,
    ): RequestBody {
      checkOffsetAndCount(size.toLong(), offset.toLong(), byteCount.toLong())
      return object : RequestBody() {
        override fun contentType() = contentType
    
        override fun contentLength() = byteCount.toLong()
    
        override fun writeTo(sink: BufferedSink) {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/it/ITBase.java

            if (testToken != null) {
                return;
            }
            given().contentType("application/json").delete(getEsUrl() + "/fess_config.access_token/_doc/" + DEFAULT_TEST_TOKEN_ID);
        }
    
        public static void refresh() {
            given().contentType("application/json").post(getEsUrl() + "/_refresh");
        }
    
        public static String getFessUrl() {
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/runtime/embedded.go

    	e.ContentEncoding = ""
    	e.ContentType = ContentTypeJSON
    	return nil
    }
    
    // Marshal may get called on pointers or values, so implement MarshalJSON on value.
    // http://stackoverflow.com/questions/21390979/custom-marshaljson-never-gets-called-in-go
    func (e Unknown) MarshalJSON() ([]byte, error) {
    	// If ContentType is unset, we assume this is JSON.
    	if e.ContentType != "" && e.ContentType != ContentTypeJSON {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Dec 02 09:39:03 UTC 2019
    - 4.3K bytes
    - Viewed (0)
  10. platforms/software/resources-gcs/src/test/groovy/org/gradle/internal/resource/transport/gcp/gcs/ResourceMapperTest.groovy

            def md5hash = '6b53d334d6959ff26af1a376c0fbd8ae'
            def contentType = 'application/octet-stream'
            def storageObject = new StorageObject()
            storageObject.setUpdated(lastModified)
            storageObject.setMd5Hash(md5hash)
            storageObject.setSize(BigInteger.TEN)
            storageObject.setContentType(contentType)
            storageObject.setEtag(Integer.toString(16))
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 1.8K bytes
    - Viewed (0)
Back to top