- Sort Score
- Result 10 results
- Languages All
Results 901 - 910 of 2,166 for contexto (0.13 sec)
-
docs/zh/docs/advanced/custom-response.md
### `Response` 其他全部的响应都继承自主类 `Response`。 你可以直接返回它。 `Response` 类接受如下参数: * `content` - 一个 `str` 或者 `bytes`。 * `status_code` - 一个 `int` 类型的 HTTP 状态码。 * `headers` - 一个由字符串组成的 `dict`。 * `media_type` - 一个给出媒体类型的 `str`,比如 `"text/html"`。 FastAPI(实际上是 Starlette)将自动包含 Content-Length 的头。它还将包含一个基于 media_type 的 Content-Type 头,并为文本类型附加一个字符集。 ```Python hl_lines="1 18"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 7.7K bytes - Viewed (0) -
CHANGELOG/CHANGELOG-1.2.md
direct YAML support in the API available today), the Content-Type and Accept headers are now properly handled as per the HTTP spec. As a consequence, if you had a client that was sending an invalid Content-Type or Accept header to the API, in 1.2 you will either receive a 415 or 406 error. The only client this is known to affect is curl when you use -d with JSON but don't set a
Registered: Fri Nov 01 09:05:11 UTC 2024 - Last Modified: Fri Dec 04 06:36:19 UTC 2020 - 41.4K bytes - Viewed (0) -
cmd/prepare-storage.go
// // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. package cmd import ( "context" "errors" "fmt" "net/http" "net/url" "path/filepath" "sync" "time" "github.com/dustin/go-humanize" xhttp "github.com/minio/minio/internal/http" "github.com/minio/minio/internal/logger" )
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Jul 12 20:51:54 UTC 2024 - 11.1K bytes - Viewed (1) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/profile/ProfileActivationContext.java
* under the License. */ package org.apache.maven.model.profile; import java.io.File; import java.util.List; import java.util.Map; /** * Describes the environmental context used to determine the activation status of profiles. * * @deprecated use {@link org.apache.maven.api.services.ModelBuilder} instead */ @Deprecated(since = "4.0.0") public interface ProfileActivationContext { /**
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.9K bytes - Viewed (0) -
src/cmd/cgo/ast_go1.go
// license that can be found in the LICENSE file. //go:build compiler_bootstrap package main import ( "go/ast" "go/token" ) func (f *File) walkUnexpected(x interface{}, context astContext, visit func(*File, interface{}, astContext)) { error_(token.NoPos, "unexpected type %T in walk", x) panic("unexpected type") } func funcTypeTypeParams(n *ast.FuncType) *ast.FieldList { return nil }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Nov 30 21:45:10 UTC 2022 - 578 bytes - Viewed (0) -
.github/workflows/vulncheck.yml
name: VulnCheck on: pull_request: branches: - master push: branches: - master permissions: contents: read # to fetch code (actions/checkout) jobs: vulncheck: name: Analysis runs-on: ubuntu-latest steps: - name: Check out code into the Go module directory uses: actions/checkout@v4 - name: Set up Go uses: actions/setup-go@v5 with:
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Sep 06 22:53:34 UTC 2024 - 658 bytes - Viewed (0) -
docs/de/docs/advanced/custom-response.md
Sie akzeptiert die folgenden Parameter: * `content` – Ein `str` oder `bytes`. * `status_code` – Ein `int`-HTTP-Statuscode. * `headers` – Ein `dict` von Strings. * `media_type` – Ein `str`, der den Medientyp angibt. Z. B. `"text/html"`.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 13.5K bytes - Viewed (0) -
src/archive/tar/writer_test.go
} // Force a PAX long name to be written longName := strings.Repeat("ab", 100) contents := strings.Repeat(" ", int(hdr.Size)) hdr.Name = longName var buf bytes.Buffer writer := NewWriter(&buf) if err := writer.WriteHeader(hdr); err != nil { t.Fatal(err) } if _, err = writer.Write([]byte(contents)); err != nil { t.Fatal(err) } if err := writer.Close(); err != nil { t.Fatal(err) }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Mon Sep 23 14:32:33 UTC 2024 - 39.4K bytes - Viewed (0) -
tests/test_tutorial/test_body_fields/test_tutorial001_an.py
"200": { "description": "Successful Response", "content": {"application/json": {"schema": {}}}, }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": {
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 7.2K bytes - Viewed (0) -
tests/test_tutorial/test_body_fields/test_tutorial001_an_py39.py
"200": { "description": "Successful Response", "content": {"application/json": {"schema": {}}}, }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": {
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 7.3K bytes - Viewed (0)