- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 163 for StatusCode (0.42 sec)
-
tensorflow/compiler/jit/pjrt_device_context.cc
[cpu_tensor = *cpu_tensor]() { /* frees tensor */ }, pjrt_device, device_layout); if (first_try_buffer.ok()) { return std::move(*first_try_buffer); } if (first_try_buffer.status().code() == absl::StatusCode::kUnimplemented) { LOG_FIRST_N(WARNING, 1) << first_try_buffer.status() << "; fallback to BufferFromHostBuffer without device layout."; TF_ASSIGN_OR_RETURN(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Apr 13 08:49:31 UTC 2024 - 11.6K bytes - Viewed (0) -
istioctl/pkg/proxyconfig/proxyconfig_test.go
_, _, codec := cmdtesting.NewExternalScheme() tf.UnstructuredClient = &fake.RESTClient{ NegotiatedSerializer: resource.UnstructuredPlusDefaultContentConfig().NegotiatedSerializer, Resp: &http.Response{ StatusCode: http.StatusOK, Header: cmdtesting.DefaultHeader(), Body: cmdtesting.ObjBody(codec, cmdtesting.NewInternalType("", "", "foo")), }, } return tf }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 10 21:51:29 UTC 2024 - 8.9K bytes - Viewed (0) -
src/net/http/clientserver_test.go
req.Header.Set("Expect", "100-continue") res, err := cst.tr.RoundTrip(req) if err != nil { t.Fatal(err) } defer res.Body.Close() if res.StatusCode != StatusUnauthorized { t.Errorf("status code = %v; want %v", res.StatusCode, StatusUnauthorized) } } func TestServerUndeclaredTrailers(t *testing.T) { run(t, testServerUndeclaredTrailers) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 46.6K bytes - Viewed (0) -
pkg/test/echo/server/forwarder/http.go
defer func() { if err := httpResp.Body.Close(); err != nil { echo.WriteError(outBuffer, requestID, err) } }() echo.StatusCodeField.WriteForRequest(outBuffer, requestID, strconv.Itoa(httpResp.StatusCode)) // Read the entire body. data, err := io.ReadAll(httpResp.Body) if err != nil { return err } // Write the response headers to the output buffer. var keys []string
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 30 13:56:46 UTC 2024 - 7.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/peerproxy/peerproxy_handler_test.go
} req.Header.Set(PeerProxiedHeader, tt.peerproxiedHeader) resp, _ := requestGetter(req) // compare response assert.Equal(t, tt.expectedStatus, resp.StatusCode) // compare metric if tt.want != "" { if err := testutil.GatherAndCompare(legacyregistry.DefaultGatherer, strings.NewReader(tt.want), tt.metrics...); err != nil { t.Fatal(err) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 10.8K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/cmd/server/testing/testserver.go
select { case err := <-errCh: return false, err default: } result := client.CoreV1().RESTClient().Get().AbsPath("/healthz").Do(context.TODO()) status := 0 result.StatusCode(&status) if status == 200 { return true, nil } return false, nil }) if err != nil { return result, fmt.Errorf("failed to wait for /healthz to return ok: %v", err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 29 18:59:21 UTC 2024 - 9K bytes - Viewed (1) -
tensorflow/compiler/mlir/quantization/common/lift_as_function_call_test.cc
// because there is no `_quantization_method` attribute. const absl::StatusOr<Method> method = GetQuantizationMethod(*xla_call_module_ops.begin()); EXPECT_THAT( method, StatusIs(absl::StatusCode::kInvalidArgument, HasSubstr("Attribute _quantization_method is not found"))); } TEST_F(LiftAsFunctionCallTest, GetQuantizationMethodFailsWhenMalformedQuantizationMethodAttr) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 10 04:07:09 UTC 2024 - 26.2K bytes - Viewed (0) -
cmd/utils.go
return BackendDown{Err: err.Error()} } minioErr, ok := err.(minio.ErrorResponse) if !ok { // We don't interpret non MinIO errors. As minio errors will // have StatusCode to help to convert to object errors. return err } switch minioErr.Code { case "SlowDownWrite": err = InsufficientWriteQuorum{Bucket: bucket, Object: object} case "SlowDownRead":
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed Jun 05 22:00:34 UTC 2024 - 31.9K bytes - Viewed (0) -
pilot/pkg/security/authz/builder/extauthz.go
if _, found := envoytypev3.StatusCode_name[int32(code)]; !found { return nil, fmt.Errorf("unsupported statusOnError %s, supported values: %v", status, supportedStatus) } return &envoytypev3.HttpStatus{Code: envoytypev3.StatusCode(code)}, nil } func generateHTTPConfig(hostname, cluster string, status *envoytypev3.HttpStatus, config *meshconfig.MeshConfig_ExtensionProvider_EnvoyExternalAuthorizationHttpProvider, ) *builtExtAuthz {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 20:06:41 UTC 2024 - 12.7K bytes - Viewed (0) -
cmd/kubeadm/app/util/version.go
body, err := io.ReadAll(resp.Body) if err != nil { return "", errors.Errorf("unable to read content of URL %q: %s", url, err.Error()) } bodyString := strings.TrimSpace(string(body)) if resp.StatusCode != http.StatusOK { msg := fmt.Sprintf("unable to fetch file. URL: %q, status: %v", url, resp.Status) return bodyString, errors.New(msg) } return bodyString, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 23 10:50:19 UTC 2024 - 9.5K bytes - Viewed (0)