- Sort Score
- Result 10 results
- Languages All
Results 741 - 750 of 1,029 for Base (0.02 sec)
-
docs/en/docs/tutorial/background-tasks.md
Create a function to be run as the background task. It is just a standard function that can receive parameters. It can be an `async def` or normal `def` function, **FastAPI** will know how to handle it correctly. In this case, the task function will write to a file (simulating sending an email). And as the write operation doesn't use `async` and `await`, we define the function with normal `def`: ```Python hl_lines="6-9"
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 5.5K bytes - Viewed (0) -
internal/ioutil/ioutil_test.go
} for i, testCase := range testCases { r := NewSkipReader(testCase.src, testCase.skipLen) b, err := io.ReadAll(r) if err != nil { t.Errorf("Case %d: Unexpected err %v", i, err) } if string(b) != testCase.expected { t.Errorf("Case %d: Got wrong result: %v", i, string(b)) } } } func TestSameFile(t *testing.T) { f, err := os.CreateTemp("", "") if err != nil {
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Wed May 22 23:07:14 UTC 2024 - 5.5K bytes - Viewed (0) -
istioctl/pkg/internaldebug/internal-debug.go
for _, resource := range response.Resources { eString := string(resource.Value) switch { case strings.Contains(eString, "You must provide a proxyID in the query string"): return nil, fmt.Errorf(" You must provide a proxyID in the query string, e.g. [%s]", "edsz?proxyID=istio-ingressgateway") case strings.Contains(eString, "404 page not found"):
Registered: Wed Oct 30 22:53:10 UTC 2024 - Last Modified: Fri Jul 12 11:30:24 UTC 2024 - 6.7K bytes - Viewed (0) -
docs/en/docs/tutorial/query-params-str-validations.md
Now let's jump to the fun stuff. 🎉 ## Add `Query` to `Annotated` in the `q` parameter Now that we have this `Annotated` where we can put more information (in this case some additional validation), add `Query` inside of `Annotated`, and set the parameter `max_length` to `50`: //// tab | Python 3.10+ ```Python hl_lines="9"
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 25.4K bytes - Viewed (0) -
internal/s3select/sql/stringfuncs_contrib_test.go
{"测试abc", 5, 5, "c", nil}, } for i, tc := range evalCases { res, err := evalSQLSubstring(tc.s, tc.startIdx, tc.length) if res != tc.resExpected || err != tc.errExpected { t.Errorf("Eval Case %d failed: %v %v", i, res, err) } }
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Tue Jun 01 21:59:40 UTC 2021 - 1.2K bytes - Viewed (0) -
internal/s3select/csv/reader_contrib_test.go
} fields++ } r.Close() if err != io.EOF { t.Fatalf("Case %d failed with %s", i, err) } if !reflect.DeepEqual(r.columnNames, c.wantColumns) { t.Errorf("Case %d failed: expected %#v, got result %#v", i, c.wantColumns, r.columnNames) } if result.String() != c.wantTenFields { t.Errorf("Case %d failed: expected %v, got result %v", i, c.wantTenFields, result.String()) }
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Mon Sep 19 18:05:16 UTC 2022 - 38.5K bytes - Viewed (0) -
docs/en/docs/deployment/index.md
## Deployment Strategies There are several ways to do it depending on your specific use case and the tools that you use. You could **deploy a server** yourself using a combination of tools, you could use a **cloud service** that does part of the work for you, or other possible options.
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Thu Jan 11 16:31:18 UTC 2024 - 1.2K bytes - Viewed (0) -
doc/next/6-stdlib/99-minor/os/user/68312.md
On Windows, [Current] has been made considerably faster when the current user is joined to a slow domain, which is the usual case for many corporate users. The new implementation performance is now in the order of milliseconds, compared to the previous implementation which could take several seconds,
Registered: Tue Oct 29 11:13:09 UTC 2024 - Last Modified: Wed Aug 21 19:59:22 UTC 2024 - 332 bytes - Viewed (0) -
dockerscripts/download-static-curl.sh
#!/bin/bash function download_arch_specific_executable { curl -f -L -s -q \ https://github.com/moparisthebest/static-curl/releases/latest/download/curl-$1 \ -o /go/bin/curl || exit 1 chmod +x /go/bin/curl } case $TARGETARCH in "arm64") download_arch_specific_executable aarch64 ;; "s390x") echo "Not downloading static cURL because it does not exist for the $TARGETARCH architecture." ;; *)
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Thu Sep 12 15:45:19 UTC 2024 - 461 bytes - Viewed (0) -
cmd/bootstrap-messages.go
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Wed Aug 23 10:07:06 UTC 2023 - 1.7K bytes - Viewed (0)