- Sort Score
- Result 10 results
- Languages All
Results 1161 - 1170 of 2,444 for Errorf (0.07 sec)
-
docs_src/handling_errors/tutorial002.py
@app.get("/items-header/{item_id}") async def read_item_header(item_id: str): if item_id not in items: raise HTTPException( status_code=404, detail="Item not found", headers={"X-Error": "There goes my error"}, )
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Mar 26 19:09:53 UTC 2020 - 404 bytes - Viewed (0) -
internal/http/dial_linux.go
"time" "github.com/minio/minio/internal/deadlineconn" "golang.org/x/sys/unix" ) func setTCPParametersFn(opts TCPOptions) func(network, address string, c syscall.RawConn) error { return func(network, address string, c syscall.RawConn) error { c.Control(func(fdPtr uintptr) { // got socket file descriptor to set parameters. fd := int(fdPtr) _ = unix.SetsockoptInt(fd, unix.SOL_SOCKET, unix.SO_REUSEADDR, 1)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jul 23 10:53:03 UTC 2024 - 5K bytes - Viewed (0) -
internal/config/policy/opa/config.go
Transport http.RoundTripper `json:"-"` CloseRespFn func(r io.ReadCloser) `json:"-"` } // Validate - validate opa configuration params. func (a *Args) Validate() error { req, err := http.NewRequest(http.MethodPost, a.URL.String(), bytes.NewReader([]byte(""))) if err != nil { return err } req.Header.Set("Content-Type", "application/json") if a.AuthToken != "" {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Jul 10 20:16:44 UTC 2024 - 5.3K bytes - Viewed (0) -
istioctl/pkg/proxystatus/proxystatus_test.go
noIstiod: true, expectedOutput: "Error: no running Istio pods in \"istio-system\"\n", wantException: true, }, { // case 1, with Istiod instance args: []string{}, expectedString: "NAME CLUSTER CDS LDS EDS RDS ECDS ISTIOD", }, { // case 2: supplying nonexistent pod name should result in error with flag
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Mar 15 08:28:50 UTC 2024 - 5.5K bytes - Viewed (0) -
tests/test_tutorial/test_path_operation_configurations/test_tutorial005.py
} }, }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": {
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Sep 28 04:14:40 UTC 2023 - 8.7K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/suggest/concurrent/DeferredTest.java
} catch (InterruptedException ignore) {} deferred.reject(new Exception()); }); th.start(); final CountDownLatch latch = new CountDownLatch(1); deferred.promise().error(error -> latch.countDown()); assertTrue(latch.await(10, TimeUnit.SECONDS)); } @Test public void test_doneAfterReject() throws Exception {
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:54 UTC 2024 - 4.8K bytes - Viewed (0) -
src/main/java/jcifs/smb/ShareEnumIterator.java
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 3.5K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/ArtifactResolver.java
@Experimental public interface ArtifactResolver extends Service { /** * @param request {@link ArtifactResolverRequest} * @return {@link ArtifactResolverResult} * @throws ArtifactResolverException in case of an error * @throws IllegalArgumentException in case of parameter {@code buildingRequest} is {@code null} or * parameter {@code mavenArtifact} is {@code null} or invalid */
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Thu Sep 12 06:19:14 UTC 2024 - 3.2K bytes - Viewed (0) -
tests/test_tutorial/test_dependencies/test_tutorial001_an_py310.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 7.2K bytes - Viewed (0) -
internal/http/dial_dnscache.go
package http import ( "context" "net" "time" ) // LookupHost is a function to make custom lookupHost for optional cached DNS requests type LookupHost func(ctx context.Context, host string) (addrs []string, err error) // DialContextWithLookupHost is a helper function which returns `net.DialContext` function. // It randomly fetches an IP via custom LookupHost function and dials it by the given dial
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jul 03 19:30:51 UTC 2023 - 2.6K bytes - Viewed (0)