Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 234 for contentType (0.1 seconds)

  1. okhttp/src/jvmTest/kotlin/okhttp3/RequestTest.kt

        val contentType = "text/plain; charset=utf-16be".toMediaType()
        val body = "\u0800".toRequestBody(contentType)
        assertThat(body.contentType()).isEqualTo(contentType)
        assertThat(body.contentLength()).isEqualTo(2)
        assertThat(bodyToHex(body)).isEqualTo("0800")
      }
    
      @Test
      fun byteArray() {
        val contentType = "text/plain".toMediaType()
        val body: RequestBody = "abc".toByteArray().toRequestBody(contentType)
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Feb 03 22:17:59 GMT 2026
    - 24.6K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/it/search/PopularWordsApiTests.java

            settingTestToken();
        }
    
        @AfterAll
        protected static void tearDownAll() {
            deleteTestToken();
        }
    
        @Test
        public void testPopularWords_ok() {
            given().contentType("application/json")
                    .when()
                    .get("/api/v1/popular-words")
                    .then()
                    .statusCode(200)
                    .body("record_count", greaterThanOrEqualTo(0))
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Dec 20 03:03:44 GMT 2025
    - 3.6K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/helper/OsddHelper.java

            this.encoding = encoding;
        }
    
        /**
         * Sets the content type.
         *
         * @param contentType the content type
         */
        public void setContentType(final String contentType) {
            this.contentType = contentType;
        }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 4.7K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/it/search/SuggestWordsApiTests.java

            deleteTestToken();
        }
    
        @Test
        public void testSuggestWords_ok() {
            Map<String, String> params = new HashMap<>();
            params.put("q", "test");
    
            given().contentType("application/json")
                    .header("Referer", getFessUrl())
                    .params(params)
                    .when()
                    .get("/api/v1/suggest-words")
                    .then()
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Dec 20 03:03:44 GMT 2025
    - 5.7K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/it/search/LabelsApiTests.java

            if (testLabelId != null) {
                deleteLabel(testLabelId);
            }
            deleteTestToken();
        }
    
        @Test
        public void testGetLabels_ok() {
            given().contentType("application/json")
                    .when()
                    .get("/api/v1/labels")
                    .then()
                    .statusCode(200)
                    .body("record_count", greaterThanOrEqualTo(0));
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Dec 20 03:03:44 GMT 2025
    - 4.1K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/it/search/ScrollSearchApiTests.java

        }
    
        @Test
        public void testScrollSearch_ok() {
            Map<String, String> params = new HashMap<>();
            params.put("q", "*");
    
            Response response = given().contentType("application/x-ndjson").params(params).when().get("/api/v1/documents/all");
    
            assertEquals(200, response.getStatusCode());
            String body = response.getBody().asString();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Dec 20 03:03:44 GMT 2025
    - 7.5K bytes
    - Click Count (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/BridgeInterceptor.kt

        val userRequest = chain.request()
        val requestBuilder = userRequest.newBuilder()
    
        val body = userRequest.body
        if (body != null) {
          val contentType = body.contentType()
          if (contentType != null) {
            requestBuilder.header("Content-Type", contentType.toString())
          }
    
          val contentLength = body.contentLength()
          if (contentLength != -1L) {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Jan 11 12:06:21 GMT 2026
    - 4.2K bytes
    - Click Count (0)
  8. 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;
                }
            };
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Mar 15 08:48:41 GMT 2026
    - 18.9K bytes
    - Click Count (1)
  9. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/Hc4HttpClient.java

                }
    
                String contentType = null;
                final Header contentTypeHeader = response.getFirstHeader("Content-Type");
                if (contentTypeHeader != null) {
                    contentType = contentTypeHeader.getValue();
                    final int idx = contentType.indexOf(';');
                    if (idx > 0) {
                        contentType = contentType.substring(0, idx);
    Created: Sun Apr 12 03:50:13 GMT 2026
    - Last Modified: Fri Jan 09 23:46:52 GMT 2026
    - 54.4K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/it/search/FavoritesApiTests.java

            // Now test the favorites API
            Map<String, String> params = new HashMap<>();
            params.put("queryId", queryId);
    
            given().contentType("application/json")
                    .params(params)
                    .when()
                    .get("/api/v1/favorites")
                    .then()
                    .statusCode(200)
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Dec 20 03:03:44 GMT 2025
    - 9.9K bytes
    - Click Count (0)
Back to Top