- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 105 for function (0.23 sec)
-
docs/en/docs/advanced/custom-response.md
{!../../../docs_src/custom_response/tutorial008.py!} ``` 1. This is the generator function. It's a "generator function" because it contains `yield` statements inside. 2. By using a `with` block, we make sure that the file-like object is closed after the generator function is done. So, after it finishes sending the response.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 11.7K bytes - Viewed (0) -
docs/en/docs/async.md
### Other utility functions Any other utility function that you call directly can be created with normal `def` or `async def` and FastAPI won't affect the way you call it. This is in contrast to the functions that FastAPI calls for you: *path operation functions* and dependencies.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 23K bytes - Viewed (0) -
docs/en/docs/tutorial/dependencies/index.md
!!! tip You'll see what other "things", apart from functions, can be used as dependencies in the next chapter. Whenever a new request arrives, **FastAPI** will take care of: * Calling your dependency ("dependable") function with the correct parameters. * Get the result from your function. * Assign that result to the parameter in your *path operation function*. ```mermaid graph TB
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 11.6K bytes - Viewed (0) -
analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/diagnostics/KtFirDataClassConverters.kt
token, ) } add(FirErrors.FUNCTION_EXPECTED) { firDiagnostic -> FunctionExpectedImpl( firDiagnostic.a, firSymbolBuilder.typeBuilder.buildKtType(firDiagnostic.b), firDiagnostic as KtPsiDiagnostic, token, ) } add(FirErrors.INTERFACE_AS_FUNCTION) { firDiagnostic -> InterfaceAsFunctionImpl(
Plain Text - Registered: Fri Apr 26 08:18:10 GMT 2024 - Last Modified: Wed Apr 24 09:49:26 GMT 2024 - 208.3K bytes - Viewed (0) -
doc/next/6-stdlib/99-minor/reflect/61308.md
The [SliceAt(typ Type, p unsafe.Pointer, len int)] function returns a Value representing a slice whose underlying array starts
Plain Text - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Apr 12 20:57:18 GMT 2024 - 170 bytes - Viewed (0) -
doc/next/6-stdlib/99-minor/go/types/65772.md
The [Func] type, which represents a function or method symbol, now has a [Func.Signature] method that returns the function's type, which
Plain Text - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Apr 19 14:33:17 GMT 2024 - 161 bytes - Viewed (0) -
analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/references/ReadWriteAccessCheckerFirImpl.kt
override fun readWriteAccessWithFullExpressionByResolve(assignment: KtBinaryExpression): Pair<ReferenceAccess, KtExpression>? { val function = assignment.operationReference.mainReference.resolve() as? KtNamedFunction ?: return null val name = function.name ?: return null return if (Name.identifier(name) in OperatorConventions.ASSIGNMENT_OPERATIONS.values) ReferenceAccess.READ to assignment
Plain Text - Registered: Fri Apr 26 08:18:10 GMT 2024 - Last Modified: Wed Apr 10 16:23:23 GMT 2024 - 1.2K bytes - Viewed (0) -
docs/en/docs/reference/dependencies.md
# Dependencies - `Depends()` and `Security()` ## `Depends()` Dependencies are handled mainly with the special function `Depends()` that takes a callable. Here is the reference for it and its parameters. You can import it directly from `fastapi`: ```python from fastapi import Depends ``` ::: fastapi.Depends ## `Security()`
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 671 bytes - Viewed (0) -
docs/en/docs/tutorial/response-model.md
# Response Model - Return Type You can declare the type used for the response by annotating the *path operation function* **return type**. You can use **type annotations** the same way you would for input data in function **parameters**, you can use Pydantic models, lists, dictionaries, scalar values like integers, booleans, etc. === "Python 3.10+" ```Python hl_lines="16 21" {!> ../../../docs_src/response_model/tutorial001_01_py310.py!} ```
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 17.9K bytes - Viewed (0) -
docs/en/docs/tutorial/first-steps.md
### Step 4: define the **path operation function** This is our "**path operation function**": * **path**: is `/`. * **operation**: is `get`. * **function**: is the function below the "decorator" (below `@app.get("/")`). ```Python hl_lines="7" {!../../../docs_src/first_steps/tutorial001.py!} ``` This is a Python function.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu May 02 22:37:31 GMT 2024 - 12K bytes - Viewed (0)