- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 1,808 for pstatus (0.3 sec)
-
docs/zh/docs/advanced/response-change-status-code.md
# 响应 - 更改状态码 你可能之前已经了解到,你可以设置默认的[响应状态码](../tutorial/response-status-code.md){.internal-link target=_blank}。 但在某些情况下,你需要返回一个不同于默认值的状态码。 ## 使用场景 例如,假设你想默认返回一个HTTP状态码为“OK”`200`。 但如果数据不存在,你想创建它,并返回一个HTTP状态码为“CREATED”`201`。 但你仍然希望能够使用`response_model`过滤和转换你返回的数据。 对于这些情况,你可以使用一个`Response`参数。 ## 使用 `Response` 参数 你可以在你的*路径操作函数*中声明一个`Response`类型的参数(就像你可以为cookies和头部做的那样)。 然后你可以在这个*临时*响应对象中设置`status_code`。
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat Jun 10 20:30:28 UTC 2023 - 1.4K bytes - Viewed (0) -
pilot/pkg/config/kube/gateway/gatewayclass.go
if existing == nil { existing = &k8sv1.GatewayClassStatus{} } existing.Conditions = kstatus.UpdateConditionIfChanged(existing.Conditions, metav1.Condition{ Type: string(k8sv1.GatewayClassConditionStatusAccepted), Status: kstatus.StatusTrue, ObservedGeneration: gen, LastTransitionTime: metav1.Now(),
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Feb 07 20:48:23 UTC 2024 - 4K bytes - Viewed (0) -
staging/src/k8s.io/client-go/applyconfigurations/core/v1/podstatus.go
ResourceClaimStatuses []PodResourceClaimStatusApplyConfiguration `json:"resourceClaimStatuses,omitempty"` } // PodStatusApplyConfiguration constructs an declarative configuration of the PodStatus type for use with // apply. func PodStatus() *PodStatusApplyConfiguration { return &PodStatusApplyConfiguration{} } // WithPhase sets the Phase field in the declarative configuration to the given value
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jul 14 01:43:16 UTC 2023 - 10.5K bytes - Viewed (0) -
src/internal/trace/internal/oldtrace/order.go
ev Event proc *proc } type gStatus int type gState struct { seq uint64 status gStatus } const ( gDead gStatus = iota gRunnable gRunning gWaiting unordered = ^uint64(0) garbage = ^uint64(0) - 1 noseq = ^uint64(0) seqinc = ^uint64(0) - 1 ) // stateTransition returns goroutine state (sequence and status) when the event
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 4K bytes - Viewed (0) -
src/runtime/defs_darwin_amd64.go
tv_nsec int64 } //go:nosplit func (ts *timespec) setNsec(ns int64) { ts.tv_sec = ns / 1e9 ts.tv_nsec = ns % 1e9 } type fpcontrol struct { pad_cgo_0 [2]byte } type fpstatus struct { pad_cgo_0 [2]byte } type regmmst struct { mmst_reg [10]int8 mmst_rsrv [6]int8 } type regxmm struct { xmm_reg [16]int8 } type regs64 struct { rax uint64
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 12 21:17:22 UTC 2024 - 6.4K bytes - Viewed (0) -
src/runtime/mstats.go
stats.GCSys = memstats.gcMiscSys.load() + gcWorkBufInUse + gcProgPtrScalarBitsInUse stats.OtherSys = memstats.other_sys.load() stats.NextGC = heapGoal stats.LastGC = memstats.last_gc_unix stats.PauseTotalNs = memstats.pause_total_ns stats.PauseNs = memstats.pause_ns stats.PauseEnd = memstats.pause_end stats.NumGC = memstats.numgc stats.NumForcedGC = memstats.numforcedgc
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 08 21:03:13 UTC 2024 - 34.2K bytes - Viewed (0) -
pilot/pkg/config/kube/gateway/testdata/alias.status.yaml.golden
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Feb 07 20:48:23 UTC 2024 - 2.3K bytes - Viewed (0) -
pilot/pkg/config/kube/gateway/testdata/mcs.status.yaml.golden
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Mar 28 21:44:38 UTC 2023 - 1.8K bytes - Viewed (0) -
pilot/pkg/config/kube/gateway/testdata/tls.status.yaml.golden
status: "True" type: Accepted - lastTransitionTime: fake message: No errors found reason: NoConflicts status: "False" type: Conflicted - lastTransitionTime: fake message: No errors found reason: Programmed status: "True" type: Programmed - lastTransitionTime: fake message: No errors found reason: ResolvedRefs status: "True"
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Mar 01 20:54:36 UTC 2024 - 5.4K bytes - Viewed (0) -
docs/pt/docs/tutorial/response-status-code.md
Esses códigos de status têm um nome associado para reconhecê-los, mas o importante é o número. Resumidamente: * `100` e acima são para "Informações". Você raramente os usa diretamente. As respostas com esses códigos de status não podem ter um corpo. * **`200`** e acima são para respostas "Bem-sucedidas". Estes são os que você mais usaria.
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Mon Oct 31 16:22:07 UTC 2022 - 4.3K bytes - Viewed (0)