Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 767 for xContent (0.06 seconds)

  1. src/test/java/org/codelibs/fess/util/SearchEngineUtilTest.java

    import org.junit.jupiter.api.Test;
    import org.lastaflute.di.exception.IORuntimeException;
    import org.opensearch.common.xcontent.XContentType;
    import org.opensearch.core.xcontent.MediaType;
    import org.opensearch.core.xcontent.ToXContent;
    import org.opensearch.core.xcontent.XContentBuilder;
    
    public class SearchEngineUtilTest extends UnitFessTestCase {
    
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 13.8K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/fess/suggest/settings/ArraySettings.java

    import org.opensearch.action.admin.indices.create.CreateIndexResponse;
    import org.opensearch.action.search.SearchResponse;
    import org.opensearch.common.xcontent.XContentFactory;
    import org.opensearch.common.xcontent.XContentType;
    import org.opensearch.common.xcontent.json.JsonXContent;
    import org.opensearch.core.xcontent.XContentBuilder;
    import org.opensearch.index.IndexNotFoundException;
    import org.opensearch.index.query.QueryBuilders;
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Mon Nov 24 03:40:05 GMT 2025
    - 15.8K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/suggest/settings/SuggestSettings.java

    import org.codelibs.fess.suggest.exception.SuggesterException;
    import org.opensearch.action.get.GetResponse;
    import org.opensearch.common.collect.Tuple;
    import org.opensearch.common.xcontent.XContentType;
    import org.opensearch.common.xcontent.json.JsonXContent;
    import org.opensearch.core.xcontent.XContentBuilder;
    import org.opensearch.index.IndexNotFoundException;
    import org.opensearch.transport.client.Client;
    
    /**
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sat Mar 14 02:35:38 GMT 2026
    - 18.7K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/suggest/util/ScrollOperationHelperTest.java

    import org.junit.AfterClass;
    import org.junit.Before;
    import org.junit.BeforeClass;
    import org.junit.Test;
    import org.opensearch.action.index.IndexResponse;
    import org.opensearch.common.xcontent.XContentType;
    import org.opensearch.index.query.QueryBuilders;
    import org.opensearch.transport.client.Client;
    
    /**
     * Integration tests for ScrollOperationHelper.
     */
    public class ScrollOperationHelperTest {
    
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sun Feb 01 12:48:24 GMT 2026
    - 7K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/suggest/Suggester.java

    import org.opensearch.action.admin.indices.refresh.RefreshResponse;
    import org.opensearch.action.search.SearchResponse;
    import org.opensearch.cluster.metadata.AliasMetadata;
    import org.opensearch.common.xcontent.XContentType;
    import org.opensearch.index.query.QueryBuilder;
    import org.opensearch.index.query.QueryBuilders;
    import org.opensearch.transport.client.Client;
    
    /**
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sun Feb 01 12:48:24 GMT 2026
    - 21.6K bytes
    - Click Count (3)
  6. src/main/java/org/codelibs/fess/suggest/settings/AnalyzerSettings.java

    import org.opensearch.action.admin.indices.settings.get.GetSettingsResponse;
    import org.opensearch.action.search.SearchResponse;
    import org.opensearch.common.settings.Settings;
    import org.opensearch.common.xcontent.XContentType;
    import org.opensearch.index.query.QueryBuilders;
    import org.opensearch.search.SearchHit;
    import org.opensearch.transport.client.Client;
    
    /**
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sun Feb 01 12:48:24 GMT 2026
    - 24.4K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/opensearch/client/SearchEngineClient.java

                if (response.getHttpStatusCode() == 200) {
                    final String content = response.getContentAsString();
                    final ObjectMapper mapper = new ObjectMapper();
                    final List<Map<String, String>> aliases = mapper.readValue(content, new TypeReference<List<Map<String, String>>>() {
                    });
                    int count = 0;
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 14:36:23 GMT 2026
    - 138.6K bytes
    - Click Count (1)
  8. docs/zh/docs/advanced/strict-content-type.md

    # 严格的 Content-Type 检查 { #strict-content-type-checking }
    
    默认情况下,FastAPI 对 JSON 请求体使用严格的 `Content-Type` 头检查。这意味着,JSON 请求必须包含有效的 `Content-Type` 头(例如 `application/json`),其请求体才会被按 JSON 解析。
    
    ## CSRF 风险 { #csrf-risk }
    
    此默认行为在一个非常特定的场景下,可防御一类跨站请求伪造(CSRF)攻击。
    
    这类攻击利用了浏览器的一个事实:当请求满足以下条件时,浏览器允许脚本在不进行任何 CORS 预检的情况下直接发送请求:
    
    - 没有 `Content-Type` 头(例如使用 `fetch()` 携带 `Blob` 作为 body)
    - 且不发送任何认证凭据。
    
    这种攻击主要在以下情况下相关:
    
    - 应用在本地(如 `localhost`)或内网中运行
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:29:48 GMT 2026
    - 3K bytes
    - Click Count (0)
  9. docs/ru/docs/advanced/strict-content-type.md

    # Строгая проверка HTTP-заголовка Content-Type { #strict-content-type-checking }
    
    По умолчанию **FastAPI** использует строгую проверку HTTP-заголовка `Content-Type` для JSON-тел запросов. Это означает, что JSON-запросы должны включать корректный заголовок `Content-Type` (например, `application/json`), чтобы тело запроса было обработано как JSON.
    
    ## Риск CSRF { #csrf-risk }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 5.6K bytes
    - Click Count (0)
  10. docs/es/docs/advanced/strict-content-type.md

    # Chequeo estricto de Content-Type { #strict-content-type-checking }
    
    Por defecto, **FastAPI** usa un chequeo estricto del header `Content-Type` para request bodies JSON, esto significa que las requests JSON deben incluir un header `Content-Type` válido (p. ej. `application/json`) para que el request body se parse como JSON.
    
    ## Riesgo de CSRF { #csrf-risk }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:12:26 GMT 2026
    - 3.4K bytes
    - Click Count (0)
Back to Top