- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 2,151 for we (0.02 sec)
-
docs/en/docs/advanced/security/oauth2-scopes.md
## Verify the `username` and data shape We verify that we get a `username`, and extract the scopes. And then we validate that data with the Pydantic model (catching the `ValidationError` exception), and if we get an error reading the JWT token or validating the data with Pydantic, we raise the `HTTPException` we created before. For that, we update the Pydantic model `TokenData` with a new property `scopes`.
Registered: 2025-05-25 07:19 - Last Modified: 2024-11-09 16:39 - 13.1K bytes - Viewed (0) -
architecture/ambient/ztunnel-cni-lifecycle.md
However, because Ztunnel operates only at Layer 4, we are in a tricky position: * TCP is stateful, so we cannot really just pass state over to the other process. If we operated at L3 we could just start processing packets in the new Ztunnel. * We do not operate at L7, so we cannot signal to the application, in any way, that it should reconnect (to the new Ztunnel). Realistically, that means the best we can do is:
Registered: 2025-05-28 22:53 - Last Modified: 2024-07-17 23:10 - 9.4K bytes - Viewed (0) -
docs/en/docs/tutorial/sql-databases.md
### Create with `HeroCreate` and return a `HeroPublic` Now that we have **multiple models**, we can update the parts of the app that use them. We receive in the request a `HeroCreate` *data model*, and from it, we create a `Hero` *table model*. This new *table model* `Hero` will have the fields sent by the client, and will also have an `id` generated by the database.
Registered: 2025-05-25 07:19 - Last Modified: 2024-12-25 20:10 - 14.7K bytes - Viewed (0) -
cni/pkg/nodeagent/informers.go
} switch event.Event { case controllers.EventAdd: // pod was added to our cache // we get here in 2 cases: // 1. new pod was created on our node // 2. we were restarted and current existing pods are added to our cache // We have no good way to distinguish between these two cases from here. But we don't need to! // Existing pods will be handled by the dataplane using `GetAmbientPods`,
Registered: 2025-05-28 22:53 - Last Modified: 2025-05-06 05:38 - 14.6K bytes - Viewed (0) -
docs/en/docs/advanced/advanced-dependencies.md
{* ../../docs_src/dependencies/tutorial011_an_py39.py hl[9] *} In this case, **FastAPI** won't ever touch or care about `__init__`, we will use it directly in our code. ## Create an instance We could create an instance of this class with: {* ../../docs_src/dependencies/tutorial011_an_py39.py hl[18] *}
Registered: 2025-05-25 07:19 - Last Modified: 2024-10-27 16:10 - 2.4K bytes - Viewed (0) -
architecture/standards/0003-avoid-introducing-Groovy-types-to-public-api.md
- **Reduce the size of the Gradle distribution** - We no longer need to carry multiple standard libraries for different languages. ## Decision We do not introduce new public API methods that include Groovy types in their signatures. Existing Groovy methods will not be removed immediately. ## Status ACCEPTED ## Consequences
Registered: 2025-05-28 11:36 - Last Modified: 2024-03-10 20:38 - 1.8K bytes - Viewed (0) -
docs/en/docs/tutorial/security/get-current-user.md
The same way we use Pydantic to declare bodies, we can use it anywhere else: {* ../../docs_src/security/tutorial002_an_py310.py hl[5,12:6] *} ## Create a `get_current_user` dependency Let's create a dependency `get_current_user`. Remember that dependencies can have sub-dependencies? `get_current_user` will have a dependency with the same `oauth2_scheme` we created before.
Registered: 2025-05-25 07:19 - Last Modified: 2024-11-09 17:03 - 3.8K bytes - Viewed (0) -
build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild.code-quality.gradle.kts
"EqualsGetClass", // Let's agree if we want to adopt Error Prone's idea of valid equals() "JdkObsolete", // Most of the checks are good, but we do not want to replace all LinkedLists without a good reason // NEVER "MissingSummary", // We have another mechanism to check Javadocs on public API "InjectOnConstructorOfAbstractClass", // We use abstract injection as a pattern
Registered: 2025-05-28 11:36 - Last Modified: 2025-05-01 14:55 - 6.4K bytes - Viewed (0) -
cni/pkg/iptables/iptables.go
cfg: hostCfg, } // By detecting iptables versions *here* once-for-all we are // committing to using the same binary/variant (legacy or nft) // within all pods as we do on the host. // // This should be fine, as the host binaries are all we have to work with here anyway, // as we are running within a privileged container - and we don't want to take the time to // redetect for each pod anyway. //
Registered: 2025-05-28 22:53 - Last Modified: 2025-04-16 17:22 - 24.9K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealRoutePlanner.kt
if (retryRoute != null) { // Lock in the route because retryRoute() is racy and we don't want to call it twice. nextRouteToTry = retryRoute return true } } // If we have a routes left, use 'em. if (routeSelection?.hasNext() == true) return true // If we haven't initialized the route selector yet, assume it'll have at least one route.
Registered: 2025-05-30 11:42 - Last Modified: 2025-05-28 23:28 - 12K bytes - Viewed (0)