Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 207 for StatusOK (0.25 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/routes/index.go

    type Index struct{}
    
    // Install adds the Index webservice to the given mux.
    func (i Index) Install(pathProvider ListedPathProvider, mux *mux.PathRecorderMux) {
    	handler := IndexLister{StatusCode: http.StatusOK, PathProvider: pathProvider}
    
    	mux.UnlistedHandle("/", handler)
    	mux.UnlistedHandle("/index.html", handler)
    }
    
    // IndexLister lists the available indexes with the status code provided
    type IndexLister struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 03 20:21:45 UTC 2017
    - 2.1K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/endpoints/discovery/version.go

    }
    
    func (s *APIVersionHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) {
    	responsewriters.WriteObjectNegotiated(s.serializer, negotiation.DefaultEndpointRestrictions, schema.GroupVersion{}, w, req, http.StatusOK,
    		&metav1.APIResourceList{GroupVersion: s.groupVersion.String(), APIResources: s.apiResourceLister.ListAPIResources()}, false)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 08 20:38:08 UTC 2022
    - 2.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/server/filters/priority-and-fairness_test.go

    		if err != nil {
    			t.Fatalf("Expected request: %q to get a response, but got error: %#v", secondRequestPathShouldWork, err)
    		}
    		if response.StatusCode != http.StatusOK {
    			t.Errorf("Expected HTTP status code: %d for request: %q, but got: %#v", http.StatusOK, secondRequestPathShouldWork, response)
    		}
    		select {
    		case <-secondHandlerDoneCh:
    		case <-time.After(wait.ForeverTestTimeout):
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:40 UTC 2023
    - 52.6K bytes
    - Viewed (0)
  4. docs/iam/identity-manager-plugin.go

    		return
    	}
    
    	rsp, ok := tokens[token]
    	if !ok {
    		w.WriteHeader(http.StatusForbidden)
    		return
    	}
    
    	fmt.Printf("Allowed for token: %s user: %s\n", token, rsp.User)
    
    	w.WriteHeader(http.StatusOK)
    	json.NewEncoder(w).Encode(rsp)
    	return
    }
    
    func main() {
    	http.HandleFunc("/", mainHandler)
    
    	log.Print("Listening on :8081")
    	log.Fatal(http.ListenAndServe(":8081", nil))
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 01 21:31:13 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  5. pkg/ctrlz/home.go

    		if req.URL.Path == "/" {
    			// home page
    			fw.RenderHTML(w, homeTmpl, getHomeInfo())
    		} else if req.URL.Path == "/homej" || req.URL.Path == "/homej/" {
    			fw.RenderJSON(w, http.StatusOK, getHomeInfo())
    		} else if a, err := assets.FS.ReadFile("static" + req.URL.Path); err == nil {
    			// static asset
    			ext := strings.ToLower(filepath.Ext(req.URL.Path))
    			if mime, ok := mimeTypes[ext]; ok {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 24 14:06:41 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/endpoints/discovery/aggregated/etag.go

    		w.WriteHeader(http.StatusNotModified)
    		return
    	}
    
    	responsewriters.WriteObjectNegotiated(
    		serializer,
    		DiscoveryEndpointRestrictions,
    		targetGV,
    		w,
    		req,
    		http.StatusOK,
    		object,
    		true,
    	)
    }
    
    func calculateETag(resources interface{}) (string, error) {
    	serialized, err := json.Marshal(resources)
    	if err != nil {
    		return "", err
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 18:15:22 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  7. pkg/ctrlz/topics/proc.go

    		fw.RenderHTML(w, tmpl, getProcInfo())
    	})
    
    	_ = context.JSONRouter().StrictSlash(true).NewRoute().Methods("GET").Path("/").HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
    		fw.RenderJSON(w, http.StatusOK, getProcInfo())
    	})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 24 14:06:41 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/responsewriters/status.go

    		status := t.Status()
    		if len(status.Status) == 0 {
    			status.Status = metav1.StatusFailure
    		}
    		switch status.Status {
    		case metav1.StatusSuccess:
    			if status.Code == 0 {
    				status.Code = http.StatusOK
    			}
    		case metav1.StatusFailure:
    			if status.Code == 0 {
    				status.Code = http.StatusInternalServerError
    			}
    		default:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 26 12:39:56 UTC 2020
    - 2.3K bytes
    - Viewed (0)
  9. pilot/cmd/pilot-agent/status/server.go

    	s.mutex.Lock()
    	if err != nil {
    		w.WriteHeader(http.StatusServiceUnavailable)
    
    		log.Warnf("Envoy proxy is NOT ready: %s", err.Error())
    		s.lastProbeSuccessful = false
    	} else {
    		w.WriteHeader(http.StatusOK)
    
    		if !s.lastProbeSuccessful {
    			log.Info("Envoy proxy is ready")
    		}
    		s.lastProbeSuccessful = true
    	}
    	s.mutex.Unlock()
    }
    
    func (s *Server) isReady() error {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  10. cni/pkg/plugin/cnieventclient.go

    	response, err = cniClient.client.Post(cniClient.url, "application/json", bytes.NewBuffer(eventData))
    	if err != nil {
    		return err
    	}
    	defer response.Body.Close()
    
    	if response.StatusCode != http.StatusOK {
    		return fmt.Errorf("unable to push CNI event, error was %d", response.StatusCode)
    	}
    
    	return nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 26 20:34:28 UTC 2024
    - 2.4K bytes
    - Viewed (0)
Back to top