- Sort Score
- Num 10 results
- Language All
Results 341 - 350 of 420 for tipini (0.04 seconds)
-
docs/ja/docs/advanced/security/http-basic-auth.md
```Python if not (credentials.username == "stanleyjobson") or not (credentials.password == "swordfish"): # 何らかのエラーを返す ... ``` しかし `secrets.compare_digest()` を使うことで、「タイミング攻撃」と呼ばれる種類の攻撃に対して安全になります。 ### タイミング攻撃 { #timing-attacks } 「タイミング攻撃」とは何でしょうか? 攻撃者がユーザー名とパスワードを推測しようとしていると想像してください。 そして、ユーザー名 `johndoe`、パスワード `love123` を使ってリクエストを送ります。 その場合、アプリケーション内の Python コードは次のようなものと等価になります: ```Python
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 6.4K bytes - Click Count (0) -
docs/pt/docs/tutorial/security/oauth2-jwt.md
Isso garante que o endpoint leve aproximadamente o mesmo tempo para responder, seja o nome de usuário válido ou não, prevenindo **timing attacks** que poderiam ser usados para enumerar nomes de usuário existentes. /// note | Nota
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:20:43 GMT 2026 - 11.6K bytes - Click Count (0) -
docs/zh/docs/features.md
* 因为 pydantic 数据结构仅仅是你定义的类的实例;自动补全,linting,mypy 以及你的直觉应该可以和你验证的数据一起正常工作。 * 验证**复杂结构**: * 使用分层的 Pydantic 模型,Python `typing` 的 `List` 和 `Dict` 等等。 * 验证器使我们能够简单清楚地将复杂的数据模式定义、检查并记录为 JSON Schema。 * 你可以拥有深度**嵌套的 JSON** 对象并对它们进行验证和注释。 * **可扩展**: * Pydantic 允许定义自定义数据类型或者你可以用验证器装饰器对被装饰的模型上的方法扩展验证。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 8.7K bytes - Click Count (0) -
fastapi/openapi/utils.py
import copy import http.client import inspect import warnings from collections.abc import Sequence from typing import Any, Literal, cast from fastapi import routing from fastapi._compat import ( ModelField, get_definitions, get_flat_models_from_fields, get_model_name_map, get_schema_from_model_field, lenient_issubclass, ) from fastapi.datastructures import DefaultPlaceholder, _Unset
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 15 11:44:39 GMT 2026 - 25.6K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/ds/DataStoreFactoryTest.java
thread.join(); } // Due to synchronized method, only one thread should reload // The count might be 2 (one initial + one reload) or slightly higher due to timing assertTrue(loadCount[0] <= 3, "Load count should be small due to synchronization"); }
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 18.2K bytes - Click Count (0) -
fastapi/_compat/v2.py
import re import warnings from collections.abc import Sequence from copy import copy from dataclasses import dataclass, is_dataclass from enum import Enum from functools import lru_cache from typing import ( Annotated, Any, Literal, Union, cast, get_args, get_origin, ) from fastapi._compat import lenient_issubclass, shared from fastapi.openapi.constants import REF_TEMPLATE
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 15 11:44:39 GMT 2026 - 16.7K bytes - Click Count (0) -
fastapi/openapi/models.py
from collections.abc import Callable, Iterable, Mapping from enum import Enum from typing import Annotated, Any, Literal, Optional, Union from fastapi._compat import with_info_plain_validator_function from fastapi.logger import logger from pydantic import ( AnyUrl, BaseModel, Field, GetJsonSchemaHandler, ) from typing_extensions import TypedDict from typing_extensions import deprecated as typing_deprecated try:
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 15 11:44:39 GMT 2026 - 14.2K bytes - Click Count (0) -
docs/ja/docs/features.md
* Pydantic のデータ構造は、あなたが定義するクラスの単なるインスタンスなので、オートコンプリート、リンティング、mypy、そしてあなたの直感が、検証済みデータに対して適切に機能します。 * **複雑な構造** を検証: * 階層的な Pydantic モデルや、Python の `typing` にある `List` や `Dict` などを利用できます。 * さらにバリデータにより、複雑なデータスキーマを明確かつ容易に定義・検査でき、JSON Schema として文書化できます。 * 深く **ネストされた JSON** オブジェクトを扱え、それらすべてを検証してアノテーションを付与できます。 * **拡張可能**:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 11.6K bytes - Click Count (0) -
docs/zh-hant/docs/tutorial/query-params-str-validations.md
/// ## 額外驗證 { #additional-validation } 我們要強制:即使 `q` 是可選,只要提供了,長度就不能超過 50 個字元。 ### 匯入 `Query` 與 `Annotated` { #import-query-and-annotated } 要達成這點,先匯入: - 從 `fastapi` 匯入 `Query` - 從 `typing` 匯入 `Annotated` {* ../../docs_src/query_params_str_validations/tutorial002_an_py310.py hl[1,3] *} /// info | 說明 FastAPI 自 0.95.0 版起加入並開始推薦使用 `Annotated`。 如果你的版本較舊,嘗試使用 `Annotated` 會出錯。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 14.8K bytes - Click Count (0) -
docs/en/docs/tutorial/query-params-str-validations.md
### Import `Query` and `Annotated` { #import-query-and-annotated } To achieve that, first import: * `Query` from `fastapi` * `Annotated` from `typing` {* ../../docs_src/query_params_str_validations/tutorial002_an_py310.py hl[1,3] *} /// info FastAPI added support for `Annotated` (and started recommending it) in version 0.95.0.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 16.3K bytes - Click Count (0)