- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 108 for converting (0.3 sec)
-
docs/en/docs/advanced/response-directly.md
Because **FastAPI** doesn't make any changes to a `Response` you return, you have to make sure its contents are ready for it. For example, you cannot put a Pydantic model in a `JSONResponse` without first converting it to a `dict` with all the data types (like `datetime`, `UUID`, etc) converted to JSON-compatible types. For those cases, you can use the `jsonable_encoder` to convert your data before passing it to a response:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3K bytes - Viewed (0) -
docs/em/docs/tutorial/path-params.md
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 7.7K bytes - Viewed (0) -
tensorflow/c/eager/abstract_function.h
#include "tensorflow/core/platform/refcount.h" #include "tensorflow/core/platform/status.h" namespace tensorflow { class FunctionRecord; // A traced function: this hides the complexity of converting the serialized // representation between various supported formats e.g. FunctionDef and Mlir // function. class AbstractFunction : public core::RefCounted { protected: enum AbstractFunctionKind { kGraph, kMlir };
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 1.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/DoubleUtilsTest.java
public void testBigToDouble() { for (BigInteger b : ALL_BIGINTEGER_CANDIDATES) { if (b.doubleValue() != DoubleUtils.bigToDouble(b)) { failFormat( "Converting %s to double: expected doubleValue %s but got bigToDouble %s", b, b.doubleValue(), DoubleUtils.bigToDouble(b)); } } } public void testEnsureNonNegative() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 03 18:10:55 UTC 2024 - 3K bytes - Viewed (0) -
docs/en/docs/tutorial/extra-data-types.md
* `frozenset`: * In requests and responses, treated the same as a `set`: * In requests, a list will be read, eliminating duplicates and converting it to a `set`. * In responses, the `set` will be converted to a `list`. * The generated schema will specify that the `set` values are unique (using JSON Schema's `uniqueItems`). * `bytes`:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 4K bytes - Viewed (0) -
docs/en/docs/tutorial/path-params.md
{"item_id":3} ``` /// check Notice that the value your function received (and returned) is `3`, as a Python `int`, not a string `"3"`. So, with that type declaration, **FastAPI** gives you automatic request <abbr title="converting the string that comes from an HTTP request into Python data">"parsing"</abbr>. /// ## Data validation
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 9.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/DoubleUtilsTest.java
public void testBigToDouble() { for (BigInteger b : ALL_BIGINTEGER_CANDIDATES) { if (b.doubleValue() != DoubleUtils.bigToDouble(b)) { failFormat( "Converting %s to double: expected doubleValue %s but got bigToDouble %s", b, b.doubleValue(), DoubleUtils.bigToDouble(b)); } } } public void testEnsureNonNegative() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 03 18:10:55 UTC 2024 - 3K bytes - Viewed (0) -
docs/en/docs/advanced/using-request-directly.md
Taking data from: * The path as parameters. * Headers. * Cookies. * etc. And by doing so, **FastAPI** is validating that data, converting it and generating documentation for your API automatically. But there are situations where you might need to access the `Request` object directly. ## Details about the `Request` object
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2.3K bytes - Viewed (0) -
docs/em/docs/advanced/dataclasses.md
4ī¸âŖ. `Author` đģ âī¸ `response_model` đĸ. 5ī¸âŖ. đ đĒ âī¸ đ đŠ đ â âŽī¸ đģ đ¨ đĒ. đ đŧ, âĢī¸ đ `Item` đģ. 6ī¸âŖ. đĨ đĨ đŦ đ đ đ `items` â đ đģ. FastAPI đ¯ <abbr title="converting the data to a format that can be transmitted">â</abbr> đŊ đģ. 7ī¸âŖ. đĨ `response_model` âī¸ đ â đ `Author` đģ. đ, đ đĒ đ `dataclasses` âŽī¸ đŠ đ â. 8ī¸âŖ. đ đ đ *⥠đ ī¸ đĸ* âī¸ đĨ `def` âŠī¸ `async def`.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3.4K bytes - Viewed (0) -
docs/en/docs/tutorial/header-params.md
] } ``` ## Recap Declare headers with `Header`, using the same common pattern as `Query`, `Path` and `Cookie`.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 5.6K bytes - Viewed (0)