- Sort Score
- Result 10 results
- Languages All
Results 6761 - 6770 of 7,200 for RETURN (0.07 sec)
-
docs/zh/docs/tutorial/handling-errors.md
### 触发 `HTTPException` `HTTPException` 是额外包含了和 API 有关数据的常规 Python 异常。 因为是 Python 异常,所以不能 `return`,只能 `raise`。 如在调用*路径操作函数*里的工具函数时,触发了 `HTTPException`,FastAPI 就不再继续执行*路径操作函数*中的后续代码,而是立即终止请求,并把 `HTTPException` 的 HTTP 错误发送至客户端。 在介绍依赖项与安全的章节中,您可以了解更多用 `raise` 异常代替 `return` 值的优势。 本例中,客户端用 `ID` 请求的 `item` 不存在时,触发状态码为 `404` 的异常: {* ../../docs_src/handling_errors/tutorial001.py hl[11] *} ### 响应结果Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Oct 11 17:48:49 UTC 2025 - 8.2K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultisetElementSetTester.java
* that the test of {@code Multisets.forSet()} can suppress them. */ @J2ktIncompatible @GwtIncompatible // reflection public static List<Method> getElementSetDuplicateInitializingMethods() { return asList( getMethod( MultisetElementSetTester.class, "testElementSetRemoveDuplicatePropagatesToMultiset")); }Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 4.3K bytes - Viewed (0) -
impl/maven-core/src/test/java/org/apache/maven/plugin/internal/MavenPluginValidatorTest.java
/** */ class MavenPluginValidatorTest extends AbstractCoreMavenComponentTestCase { @Inject private MavenPluginValidator mavenPluginValidator; protected String getProjectsDirectory() { return "src/test/projects/default-maven"; } @Test void testValidate() { Artifact plugin = new DefaultArtifact( "org.apache.maven.its.plugins", "maven-it-plugin",Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Sep 17 10:01:14 UTC 2025 - 4.5K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/lifecycle/LifecycleExecutor.java
// // We need to know the specific version so that we can look up the right version of the plugin descriptor // which tells us what the default configuration is. // /** * @return The plugins bound to the lifecycles of the specified packaging or {@code null} if the packaging is * unknown. */ Set<Plugin> getPluginsBoundByDefaultToAllLifecycles(String packaging);Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 4.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/InterruptionUtil.java
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sun Aug 10 19:54:19 UTC 2025 - 4.5K bytes - Viewed (0) -
.teamcity/.mvn/wrapper/MavenWrapperDownloader.java
Authenticator.setDefault(new Authenticator() { @Override protected PasswordAuthentication getPasswordAuthentication() { return new PasswordAuthentication(username, password); } }); } URL website = new URL(urlString); ReadableByteChannel rbc;
Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Wed Feb 26 01:48:39 UTC 2020 - 4.8K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/RequestBodyTest.kt
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue Oct 07 14:16:29 UTC 2025 - 3.8K bytes - Viewed (1) -
docs/zh/docs/advanced/response-cookies.md
**FastAPI** 会使用这个 *临时* 响应对象去装在这些cookies信息 (同样还有headers和状态码等信息), 最终会将这些信息和通过`response_model`转化过的数据合并到最终的响应里。 你也可以在depend中定义`Response`参数,并设置cookie和header。 ## 直接响应 `Response` 你还可以在直接响应`Response`时直接创建cookies。 你可以参考[Return a Response Directly](response-directly.md){.internal-link target=_blank}来创建response 然后设置Cookies,并返回: {* ../../docs_src/response_cookies/tutorial001.py hl[10:12] *} /// tipRegistered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Oct 11 17:48:49 UTC 2025 - 2.1K bytes - Viewed (0) -
tests/test_tutorial/test_body_multiple_params/test_tutorial003.py
], ) def get_client(request: pytest.FixtureRequest): mod = importlib.import_module(f"docs_src.body_multiple_params.{request.param}") client = TestClient(mod.app) return client def test_post_body_valid(client: TestClient): response = client.put( "/items/5", json={ "importance": 2, "item": {"name": "Foo", "price": 50.5},
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 7.4K bytes - Viewed (0) -
internal/event/event.go
S3 Metadata `json:"s3"` Source Source `json:"source"` Type madmin.TraceType `json:"-"` } // Mask returns the type as mask. func (e Event) Mask() uint64 { return e.EventName.Mask() } // Log represents event information for some event targets. type Log struct { EventName Name Key string Records []Event
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Tue Jun 20 00:53:08 UTC 2023 - 3.4K bytes - Viewed (0)