Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 66 for StatusCode (0.69 sec)

  1. internal/event/target/webhook.go

    	}
    
    	req.Header.Set("Content-Type", "application/json")
    
    	resp, err := target.httpClient.Do(req)
    	if err != nil {
    		return err
    	}
    	defer xhttp.DrainBody(resp.Body)
    
    	if resp.StatusCode < 200 || resp.StatusCode > 299 {
    		return fmt.Errorf("sending event failed with %v", resp.Status)
    	}
    
    	return nil
    }
    
    // SendFromStore - reads an event from store and sends it to webhook.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/api/v1/cluster_tf_test.cc

        mlir_module_ =
            mlir::parseSourceFile<mlir::ModuleOp>(mlir_module_path, &context_);
        if (!mlir_module_) {
          return absl::Status(
              absl::StatusCode::kNotFound,
              absl::StrCat("Could not find MLIR module at ", mlir_module_path));
        }
        return absl::OkStatus();
      }
    
      DialectRegistry registry_;
      MLIRContext context_;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:44:37 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/api/v1/tf_dialect_to_executor_test.cc

        mlir_module_ =
            mlir::parseSourceFile<mlir::ModuleOp>(mlir_module_path, &context_);
        if (!mlir_module_) {
          return absl::Status(
              absl::StatusCode::kNotFound,
              absl::StrCat("Could not find MLIR module at ", mlir_module_path));
        }
        return absl::OkStatus();
      }
    
      DialectRegistry registry_;
      MLIRContext context_;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 08:08:57 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/internal/logging_hooks_test.cc

        mlir_module_ =
            mlir::parseSourceFile<mlir::ModuleOp>(mlir_module_path, &context_);
        if (!mlir_module_) {
          return absl::Status(
              absl::StatusCode::kNotFound,
              absl::StrCat("Could not find MLIR module at ", mlir_module_path));
        }
        return absl::OkStatus();
      }
    
      DialectRegistry registry_;
      MLIRContext context_;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 20:29:34 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  5. internal/config/identity/openid/jwt.go

    	client := &http.Client{
    		Transport: r.transport,
    	}
    
    	resp, err := client.Get(pCfg.JWKS.URL.String())
    	if err != nil {
    		return err
    	}
    	defer r.closeRespFn(resp.Body)
    	if resp.StatusCode != http.StatusOK {
    		return errors.New(resp.Status)
    	}
    
    	return r.pubKeys.parseAndAdd(resp.Body)
    }
    
    // ErrTokenExpired - error token expired
    var (
    	ErrTokenExpired = errors.New("token expired")
    )
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 30 18:10:41 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/api/v2/tf_dialect_to_executor_test.cc

        mlir_module_ =
            mlir::parseSourceFile<mlir::ModuleOp>(mlir_module_path, &context_);
        if (!mlir_module_) {
          return absl::Status(
              absl::StatusCode::kNotFound,
              absl::StrCat("Could not find MLIR module at ", mlir_module_path));
        }
        return absl::OkStatus();
      }
    
      DialectRegistry registry_;
      MLIRContext context_;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 13 23:22:50 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  7. istioctl/pkg/ztunnelconfig/ztunnelconfig_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
    - 3.8K bytes
    - Viewed (0)
  8. src/net/http/filetransport.go

    func (pr *populateResponse) Header() Header {
    	return pr.res.Header
    }
    
    func (pr *populateResponse) WriteHeader(code int) {
    	if pr.wroteHeader {
    		return
    	}
    	pr.wroteHeader = true
    
    	pr.res.StatusCode = code
    	pr.res.Status = fmt.Sprintf("%d %s", code, StatusText(code))
    }
    
    func (pr *populateResponse) Write(p []byte) (n int, err error) {
    	if !pr.wroteHeader {
    		pr.WriteHeader(StatusOK)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  9. pkg/log/uds.go

    	}
    	resp, err := u.client.Post(u.url, "application/json", bytes.NewReader(msg))
    	if err != nil {
    		return fmt.Errorf("failed to send logs to uds server %v: %v", u.url, err)
    	}
    	if resp.StatusCode != http.StatusOK {
    		return fmt.Errorf("uds server returns non-ok status %v: %v", u.url, resp.Status)
    	}
    	return nil
    }
    
    // Write implements zapcore.Core. Log messages will be temporarily buffered and sent to
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 16 00:20:01 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/api/v2/cluster_tf_test.cc

        mlir_module_ =
            mlir::parseSourceFile<mlir::ModuleOp>(mlir_module_path, &context_);
        if (!mlir_module_) {
          return absl::Status(
              absl::StatusCode::kNotFound,
              absl::StrCat("Could not find MLIR module at ", mlir_module_path));
        }
        return absl::OkStatus();
      }
    
      DialectRegistry registry_;
      MLIRContext context_;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:44:37 UTC 2024
    - 6.2K bytes
    - Viewed (0)
Back to top