Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 151 for isStrict (0.05 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. compat/maven-toolchain-builder/src/main/java/org/apache/maven/toolchain/io/DefaultToolchainsReader.java

            } catch (XMLStreamException e) {
                throw new ToolchainsParseException(
                        e.getMessage(),
                        e.getLocation().getLineNumber(),
                        e.getLocation().getColumnNumber(),
                        e);
            }
        }
    
        private boolean isStrict(Map<String, ?> options) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Sep 29 14:45:25 GMT 2025
    - 3.8K bytes
    - Click Count (0)
  2. compat/maven-model-builder/src/main/java/org/apache/maven/model/io/DefaultModelReader.java

            Object value = (options != null) ? options.get(IS_STRICT) : null;
            return value == null || Boolean.parseBoolean(value.toString());
        }
    
        private InputSource getSource(Map<String, ?> options) {
            Object value = (options != null) ? options.get(INPUT_SOURCE) : null;
            return (InputSource) value;
        }
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jan 10 07:09:12 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  3. api/maven-api-core/src/main/java/org/apache/maven/api/services/xml/XmlReaderRequest.java

                this.transformer = transformer;
                return this;
            }
    
            public XmlReaderRequestBuilder strict(boolean strict) {
                this.strict = strict;
                return this;
            }
    
            public XmlReaderRequestBuilder modelId(String modelId) {
                this.modelId = modelId;
                return this;
            }
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Aug 29 12:46:27 GMT 2025
    - 6.8K bytes
    - Click Count (0)
  4. compat/maven-settings-builder/src/main/java/org/apache/maven/settings/io/SettingsReader.java

    @Deprecated(since = "4.0.0")
    public interface SettingsReader {
    
        /**
         * The key for the option to enable strict parsing. This option is of type {@link Boolean} and defaults to {@code
         * true}. If {@code false}, unknown elements will be ignored instead of causing a failure.
         */
        String IS_STRICT = "org.apache.maven.settings.io.isStrict";
    
        /**
         * Reads the settings from the specified file.
         *
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 3.4K bytes
    - Click Count (0)
  5. compat/maven-toolchain-builder/src/main/java/org/apache/maven/toolchain/io/ToolchainsReader.java

    @Deprecated(since = "4.0.0")
    public interface ToolchainsReader {
    
        /**
         * The key for the option to enable strict parsing. This option is of type {@link Boolean} and defaults to {@code
         * true}. If {@code false}, unknown elements will be ignored instead of causing a failure.
         */
        String IS_STRICT = "org.apache.maven.toolchains.io.isStrict";
    
        /**
         * Reads the toolchains from the specified file.
         *
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Mar 05 09:37:42 GMT 2025
    - 3.5K bytes
    - Click Count (0)
  6. impl/maven-core/src/main/java/org/apache/maven/artifact/repository/metadata/io/MetadataReader.java

     *
     */
    public interface MetadataReader {
    
        /**
         * The key for the option to enable strict parsing. This option is of type {@link Boolean} and defaults to {@code
         * true}. If {@code false}, unknown elements will be ignored instead of causing a failure.
         */
        String IS_STRICT = "org.apache.maven.artifact.repository.metadata.io.isStrict";
    
        /**
         * Reads the metadata from the specified file.
         *
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 3.3K bytes
    - Click Count (0)
  7. src/main/webapp/js/admin/moment-with-locales.min.js.map

    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Oct 26 01:49:09 GMT 2024
    - 224.8K 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/en/docs/advanced/strict-content-type.md

    # Strict Content-Type Checking { #strict-content-type-checking }
    
    By default, **FastAPI** uses strict `Content-Type` header checking for JSON request bodies, this means that JSON requests **must** include a valid `Content-Type` header (e.g. `application/json`) in order for the body to be parsed as JSON.
    
    ## CSRF Risk { #csrf-risk }
    
    This default behavior provides protection against a class of **Cross-Site Request Forgery (CSRF)** attacks in a very specific scenario.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Mon Feb 23 17:45:20 GMT 2026
    - 3.2K bytes
    - Click Count (0)
  10. docs/tr/docs/advanced/strict-content-type.md

    # Sıkı Content-Type Kontrolü { #strict-content-type-checking }
    
    Varsayılan olarak FastAPI, JSON request body'leri için sıkı Content-Type header kontrolü uygular. Bu, JSON request'lerin body'lerinin JSON olarak parse edilebilmesi için geçerli bir Content-Type header'ı (örn. application/json) içermesi gerektiği anlamına gelir.
    
    ## CSRF Riski { #csrf-risk }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:51:35 GMT 2026
    - 3.6K bytes
    - Click Count (0)
Back to Top