- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 930 for context_ (0.18 seconds)
-
internal/kms/context.go
package kms import ( "bytes" "sort" "unicode/utf8" ) // Context is a set of key-value pairs that // are associated with a generate data encryption // key (DEK). // // A KMS implementation may bind the context to the // generated DEK such that the same context must be // provided when decrypting an encrypted DEK. type Context map[string]string // MarshalText returns a canonical text representation of
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Jan 02 17:15:06 GMT 2022 - 6K bytes - Click Count (0) -
docs/zh/docs/advanced/strict-content-type.md
# 严格的 Content-Type 检查 { #strict-content-type-checking } 默认情况下,FastAPI 对 JSON 请求体使用严格的 `Content-Type` 头检查。这意味着,JSON 请求必须包含有效的 `Content-Type` 头(例如 `application/json`),其请求体才会被按 JSON 解析。 ## CSRF 风险 { #csrf-risk } 此默认行为在一个非常特定的场景下,可防御一类跨站请求伪造(CSRF)攻击。 这类攻击利用了浏览器的一个事实:当请求满足以下条件时,浏览器允许脚本在不进行任何 CORS 预检的情况下直接发送请求: - 没有 `Content-Type` 头(例如使用 `fetch()` 携带 `Blob` 作为 body) - 且不发送任何认证凭据。 这种攻击主要在以下情况下相关: - 应用在本地(如 `localhost`)或内网中运行Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:29:48 GMT 2026 - 3K bytes - Click Count (0) -
src/cmd/api/api_test.go
if *flagCheck { // slow, not worth repeating in -check t.Skip("skipping with -check set") } testenv.MustHaveGoBuild(t) context := new(build.Context) *context = build.Default context.Dir = filepath.Join(testenv.GOROOT(t), "src") w := NewWalker(context, context.Dir) for _, pkg := range w.stdPackages { if strings.HasPrefix(pkg, "vendor/") || strings.HasPrefix(pkg, "golang.org/x/") {Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Mon Mar 02 13:20:41 GMT 2026 - 7.6K bytes - Click Count (0) -
docs/es/docs/advanced/strict-content-type.md
# Chequeo estricto de Content-Type { #strict-content-type-checking } Por defecto, **FastAPI** usa un chequeo estricto del header `Content-Type` para request bodies JSON, esto significa que las requests JSON deben incluir un header `Content-Type` válido (p. ej. `application/json`) para que el request body se parse como JSON. ## Riesgo de CSRF { #csrf-risk }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:12:26 GMT 2026 - 3.4K bytes - Click Count (0) -
docs/ru/docs/advanced/strict-content-type.md
# Строгая проверка HTTP-заголовка Content-Type { #strict-content-type-checking } По умолчанию **FastAPI** использует строгую проверку HTTP-заголовка `Content-Type` для JSON-тел запросов. Это означает, что JSON-запросы должны включать корректный заголовок `Content-Type` (например, `application/json`), чтобы тело запроса было обработано как JSON. ## Риск CSRF { #csrf-risk }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:56:20 GMT 2026 - 5.6K bytes - Click Count (0) -
src/main/java/jcifs/CIFSContext.java
*/ package jcifs; import java.net.URLStreamHandler; /** * Encapsulation of client context * * * A context holds the client configuration, shared services as well as the active credentials. * * Usually you will want to create one context per client configuration and then * multiple sub-contexts using different credentials (if necessary). *
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 4.9K bytes - Click Count (0) -
tensorflow/c/eager/immediate_execution_distributed_manager.h
// Set up distributed execution environment on local and remote tasks. // When `reset_context` is true, initialize new cluster context state based // on cluster configurations provided in `server_def`; otherwise, update // existing context state with the provided `server_def`. Contexts created // on remote tasks will be considered stale and garbage collected after // `keep_alive_secs` of inactivity.
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Sat Oct 12 05:11:17 GMT 2024 - 2.9K bytes - Click Count (0) -
internal/logger/audit.go
// SetAuditEntry sets Audit info in the context. func SetAuditEntry(ctx context.Context, audit *audit.Entry) context.Context { if ctx == nil { LogIf(context.Background(), "audit", fmt.Errorf("context is nil")) return nil } return context.WithValue(ctx, contextAuditKey, audit) } // GetAuditEntry returns Audit entry if set. func GetAuditEntry(ctx context.Context) *audit.Entry { if ctx != nil {
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 4.6K bytes - Click Count (0) -
docs/es/docs/advanced/templates.md
```jinja hl_lines="7" {!../../docs_src/templates/templates/item.html!} ``` ### Valores de Contexto de la Plantilla { #template-context-values } En el HTML que contiene: {% raw %} ```jinja Item ID: {{ id }} ``` {% endraw %} ...mostrará el `id` tomado del `dict` de "contexto" que pasaste: ```Python {"id": id} ``` Por ejemplo, con un ID de `42`, esto se renderizaría como:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:15:55 GMT 2026 - 3.6K bytes - Click Count (0) -
docs/fr/docs/advanced/templates.md
```jinja hl_lines="7" {!../../docs_src/templates/templates/item.html!} ``` ### Valeurs de contexte du template { #template-context-values } Dans le HTML qui contient : {% raw %} ```jinja Item ID: {{ id }} ``` {% endraw %} ... il affichera l’`id` récupéré à partir du `dict` « context » que vous avez passé : ```Python {"id": id} ``` Par exemple, avec un ID de `42`, cela rendrait :Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:37:13 GMT 2026 - 3.7K bytes - Click Count (0)