- Sort Score
- Num 10 results
- Language All
Results 101 - 110 of 1,147 for type2 (0.05 seconds)
-
docs/fr/docs/advanced/advanced-python-types.md
# Types Python avancés { #advanced-python-types } Voici quelques idées supplémentaires qui peuvent être utiles lorsque vous travaillez avec les types Python. ## Utiliser `Union` ou `Optional` { #using-union-or-optional }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Feb 14 08:12:41 GMT 2026 - 2.3K bytes - Click Count (0) -
docs/zh/docs/advanced/advanced-python-types.md
# 高级 Python 类型 { #advanced-python-types } 这里有一些在使用 Python 类型时可能有用的额外想法。 ## 使用 `Union` 或 `Optional` { #using-union-or-optional } 如果你的代码因为某些原因不能使用 `|`,例如它不是在类型注解里,而是在 `response_model=` 之类的参数中,那么你可以使用 `typing` 中的 `Union` 来代替竖线(`|`)。 例如,你可以声明某个值可以是 `str` 或 `None`: ```python from typing import Union def say_hi(name: Union[str, None]): print(f"Hi {name}!") ``` `typing` 也提供了一个声明“可能为 `None`”的快捷方式:`Optional`。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 13 13:37:57 GMT 2026 - 2K bytes - Click Count (0) -
cmd/metrics-v3-types.go
} type metricValue struct { Labels map[string]string Value float64 } // MetricValues - type to set metric values retrieved while loading metrics. A // value of this type is passed to the `MetricsLoaderFn`. type MetricValues struct { values map[MetricName][]metricValue descriptors map[MetricName]MetricDescriptor } func newMetricValues(d map[MetricName]MetricDescriptor) MetricValues {Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Feb 28 19:33:08 GMT 2025 - 15.6K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/base/login/FessLoginAssist.java
this.resolver = resolver; } /** * Resolves credentials of the specified type using the provided function. * * @param <CREDENTIAL> the credential type * @param credentialType the class of the credential type * @param oneArgLambda the function to apply for credential resolution */Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Jul 17 08:28:31 GMT 2025 - 12.1K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/util/DocumentUtil.java
} /** * Converts an object to the specified type. * Supports conversion to String, Date, Long, Integer, Double, Float, and Boolean types. * * @param <T> the type to convert the value to * @param value the value to convert * @param clazz the target class type * @return the converted value or null if conversion is not supported */Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Aug 07 03:06:29 GMT 2025 - 7.2K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/plugin/annotations/Parameter.java
* for finalName directly in the plugin configuration section. It is also useful to ensure that - for example - a * List-typed parameter which expects items of type Artifact doesn't get a List full of Strings. * * @return <code>true</code> if the user should not be allowed to configure the parameter directly */ boolean readonly() default false;Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Mon Feb 05 09:45:47 GMT 2024 - 3.8K bytes - Click Count (0) -
docs/de/docs/advanced/settings.md
/// tip | Tipp Um Umgebungsvariablen zu verstehen, können Sie [Umgebungsvariablen](../environment-variables.md) lesen. /// ## Typen und Validierung { #types-and-validation }
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:58:09 GMT 2026 - 12.5K bytes - Click Count (0) -
compat/maven-model-builder/src/test/resources/poms/validation/missing-type-pom.xml
Guillaume Nodet <******@****.***> 1729859506 +0200
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 934 bytes - Click Count (0) -
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) -
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)