- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 207 for StatusOK (0.11 sec)
-
pkg/ctrlz/topics/scopes.go
return scopeInfos[i].Name < scopeInfos[j].Name }) fw.RenderJSON(w, http.StatusOK, scopeInfos) } func getScope(w http.ResponseWriter, req *http.Request) { vars := mux.Vars(req) name := vars["scope"] if s := log.FindScope(name); s != nil { fw.RenderJSON(w, http.StatusOK, getScopeInfo(s)) return }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 24 14:06:41 UTC 2023 - 4K bytes - Viewed (0) -
cmd/crossdomain-xml-handler_test.go
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sat Jul 08 14:31:42 UTC 2023 - 1.3K bytes - Viewed (0) -
pkg/kubelet/config/http_test.go
data, err := json.Marshal(testCase.pod) if err != nil { t.Fatalf("%s: Some weird json problem: %v", testCase.desc, err) } fakeHandler := utiltesting.FakeHandler{ StatusCode: http.StatusOK, ResponseBody: string(data), } testServer := httptest.NewServer(&fakeHandler) defer testServer.Close() ch := make(chan interface{}, 1)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 14 09:38:23 UTC 2022 - 11.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/filters/goaway_test.go
} if resp.StatusCode != http.StatusOK { defer resp.Body.Close() body, err := ioutil.ReadAll(resp.Body) if err != nil { return nil, fmt.Errorf("failed to read response body and status code is %d, error: %v", resp.StatusCode, err) } return nil, fmt.Errorf("expect response status code: %d, but got: %d. response body: %s", http.StatusOK, resp.StatusCode, body) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 17 12:58:54 UTC 2021 - 13.9K bytes - Viewed (0) -
src/database/sql/example_service_test.go
defer cancel() err := s.db.PingContext(ctx) if err != nil { http.Error(w, fmt.Sprintf("db down: %v", err), http.StatusFailedDependency) return } w.WriteHeader(http.StatusOK) return case "/quick-action": // This is a short SELECT. Use the request context as the base of // the context timeout. ctx, cancel := context.WithTimeout(r.Context(), 3*time.Second) defer cancel()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 28 20:21:26 UTC 2024 - 4K bytes - Viewed (0) -
cmd/object-lambda-handlers.go
"Switching Protocols": http.StatusSwitchingProtocols, "Processing": http.StatusProcessing, "Early Hints": http.StatusEarlyHints, "OK": http.StatusOK, "Created": http.StatusCreated, "Accepted": http.StatusAccepted, "Non-Authoritative Information": http.StatusNonAuthoritativeInfo,
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 10.2K bytes - Viewed (0) -
pkg/probe/http/http_test.go
health probe.Result accBody string notBody string }{ // The probe will be filled in below. This is primarily testing that an HTTP GET happens. { handler: handleReq(http.StatusOK, "ok body"), health: probe.Success, accBody: "ok body", }, { handler: headerCounterHandler, reqHeaders: http.Header{}, health: probe.Success, accBody: "3", },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 18 01:40:08 UTC 2023 - 15.7K bytes - Viewed (0) -
src/os/exec.go
// reference was not dropped or status changed. func (p *Process) handlePersistentRelease(reason processStatus) processStatus { if p.mode != modeHandle { panic("handlePersistentRelease called in invalid mode") } for { refs := p.state.Load() status := processStatus(refs & processStatusMask) if status != statusOK {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 22:06:47 UTC 2024 - 12.8K bytes - Viewed (0) -
tests/integration/pilot/common/routing.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 08 21:52:51 UTC 2024 - 135.9K bytes - Viewed (0) -
pkg/ctrlz/topics/version.go
fw.RenderHTML(w, tmpl, &version.Info) }) _ = context.JSONRouter().StrictSlash(true).NewRoute().Methods("GET").Path("/").HandlerFunc(func(w http.ResponseWriter, req *http.Request) { fw.RenderJSON(w, http.StatusOK, &version.Info) })
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 24 14:06:41 UTC 2023 - 1.5K bytes - Viewed (0)