- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 134 for RETURNING (0.11 sec)
-
docs/en/docs/advanced/custom-response.md
{!../../docs_src/custom_response/tutorial004.py!} ``` In this example, the function `generate_html_response()` already generates and returns a `Response` instead of returning the HTML in a `str`. By returning the result of calling `generate_html_response()`, you are already returning a `Response` that will override the default **FastAPI** behavior.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 12K bytes - Viewed (0) -
docs/en/docs/tutorial/middleware.md
# Middleware You can add middleware to **FastAPI** applications. A "middleware" is a function that works with every **request** before it is processed by any specific *path operation*. And also with every **response** before returning it. * It takes each **request** that comes to your application. * It can then do something to that **request** or run any needed code.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/ExecutionSequencerTest.java
} }, directExecutor())); thingToCancel[0] = serializer.submit(Callables.returning(null), directExecutor()); results.add(thingToCancel[0]); // Enqueue more than enough tasks to force reentrancy. for (int i = 0; i < 5; i++) { results.add(serializer.submit(Callables.returning(null), directExecutor())); } manualExecutorTask[0].run();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 16.7K bytes - Viewed (0) -
docs/en/docs/tutorial/response-model.md
//// FastAPI will use this return type to: * **Validate** the returned data. * If the data is invalid (e.g. you are missing a field), it means that *your* app code is broken, not returning what it should, and it will return a server error instead of returning incorrect data. This way you and your clients can be certain that they will receive the data and the data shape expected. * Add a **JSON Schema** for the response, in the OpenAPI *path operation*.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 18.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/ExecutionSequencerTest.java
} }, directExecutor())); thingToCancel[0] = serializer.submit(Callables.returning(null), directExecutor()); results.add(thingToCancel[0]); // Enqueue more than enough tasks to force reentrancy. for (int i = 0; i < 5; i++) { results.add(serializer.submit(Callables.returning(null), directExecutor())); } manualExecutorTask[0].run();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 16.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/InvokableTest.java
assertEquals(1, prepender.times); } public void testConstructor_returning() throws Exception { Invokable<?, Prepender> delegate = Prepender.constructor(String.class, int.class).returning(Prepender.class); Prepender prepender = delegate.invoke(null, "a", 1); assertEquals("a", prepender.prefix); assertEquals(1, prepender.times); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 13:00:28 UTC 2024 - 30.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/InvokableTest.java
assertEquals(1, prepender.times); } public void testConstructor_returning() throws Exception { Invokable<?, Prepender> delegate = Prepender.constructor(String.class, int.class).returning(Prepender.class); Prepender prepender = delegate.invoke(null, "a", 1); assertEquals("a", prepender.prefix); assertEquals(1, prepender.times); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 13:00:28 UTC 2024 - 30.7K bytes - Viewed (0) -
docs/en/docs/advanced/response-cookies.md
You can also declare the `Response` parameter in dependencies, and set cookies (and headers) in them. ## Return a `Response` directly You can also create cookies when returning a `Response` directly in your code. To do that, you can create a response as described in [Return a Response Directly](response-directly.md){.internal-link target=_blank}. Then set Cookies in it, and then return it:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/TrustedListenableFutureTaskTest.java
assertFalse(task.isDone()); task.run(); assertTrue(task.isDone()); assertFalse(task.isCancelled()); assertEquals(2, getDone(task).intValue()); } public void testCancelled() throws Exception { TrustedListenableFutureTask<Integer> task = TrustedListenableFutureTask.create(returning(2)); assertFalse(task.isDone()); task.cancel(false);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 15:41:36 UTC 2024 - 7.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/FakeTimeLimiterTest.java
super.setUp(); timeLimiter = new FakeTimeLimiter(); } public void testCallWithTimeout_propagatesReturnValue() throws Exception { String result = timeLimiter.callWithTimeout(Callables.returning(RETURN_VALUE), DELAY_MS, MILLISECONDS); assertThat(result).isEqualTo(RETURN_VALUE); } public void testCallWithTimeout_wrapsCheckedException() throws Exception {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 4K bytes - Viewed (0)