- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 52 for StatusOK (0.35 sec)
-
src/cmd/vendor/github.com/google/pprof/internal/driver/fetch.go
Transport: tr, Timeout: timeout + 5*time.Second, } resp, err := client.Get(source) if err != nil { return nil, fmt.Errorf("http fetch: %v", err) } if resp.StatusCode != http.StatusOK { defer resp.Body.Close() return nil, statusCodeError(resp) } return resp.Body, nil } func statusCodeError(resp *http.Response) error {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 19:48:28 UTC 2024 - 19K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/proxy/upgradeaware.go
func (onewayRoundTripper) RoundTrip(req *http.Request) (*http.Response, error) { return &http.Response{ Status: "200 OK", StatusCode: http.StatusOK, Body: io.NopCloser(&bytes.Buffer{}), Request: req, }, nil } // MirrorRequest is a round tripper that can be called to get back the calling request as // the core round tripper in a chain.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 04 19:10:30 UTC 2024 - 19.6K bytes - Viewed (0) -
pilot/pkg/bootstrap/server_test.go
for _, url := range []string{"http://" + s.httpAddr, "https://" + s.httpsAddr} { resp, err := c.Get(url + "/ready") g.Expect(err).ToNot(HaveOccurred()) g.Expect(resp.StatusCode).To(Equal(http.StatusOK)) g.Expect(resp.Body.Close()).To(Succeed()) } } func TestInitOIDC(t *testing.T) { tests := []struct { name string expectErr bool jwtRule string }{ {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 13 17:48:28 UTC 2024 - 23.1K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/builder/builder.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 28 19:06:46 UTC 2024 - 22.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/patch.go
} result, wasCreated, err := p.patchResource(ctx, scope) if err != nil { scope.err(err, w, req) return } span.AddEvent("Object stored in database") status := http.StatusOK if wasCreated { status = http.StatusCreated } span.AddEvent("About to write a response") defer span.AddEvent("Writing http response done")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 28.5K bytes - Viewed (0) -
src/net/http/fs.go
setLastModified(w, modtime) done, rangeReq := checkPreconditions(w, r, modtime) if done { return } code := StatusOK // If Content-Type isn't set, use the file's extension to find it, but // if the Content-Type is unset explicitly, do not sniff the type. ctypes, haveType := w.Header()["Content-Type"] var ctype string
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 09 17:06:47 UTC 2024 - 31.1K bytes - Viewed (0) -
cmd/object-multipart-handlers.go
Event: "scanner:manyversions", APIName: "CompleteMultipartUpload", Bucket: objInfo.Bucket, Object: objInfo.Name, VersionID: objInfo.VersionID, Status: http.StatusText(http.StatusOK), }) } // Remove the transitioned object whose object version is being overwritten. if !globalTierConfigMgr.Empty() { // Schedule object for immediate transition if eligible.
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Jun 14 13:28:35 UTC 2024 - 38.8K bytes - Viewed (0) -
pkg/kube/client.go
return nil, formatError(err) } resp, err := c.http.Do(req.WithContext(ctx)) if err != nil { return nil, formatError(err) } defer closeQuietly(resp.Body) if resp.StatusCode != http.StatusOK { return nil, fmt.Errorf("unexpected status code: %d", resp.StatusCode) } out, err := io.ReadAll(resp.Body) if err != nil { return nil, formatError(err) } return out, nil }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Apr 25 14:44:17 UTC 2024 - 39K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/plugin/pkg/authenticator/token/oidc/oidc.go
} req = req.WithContext(ctx) response, err := client.Do(req) if err != nil { return "", err } defer response.Body.Close() // Report non-OK status code as an error. if response.StatusCode < http.StatusOK || response.StatusCode > http.StatusIMUsed { return "", fmt.Errorf("error while getting distributed claim JWT: %v", response.Status) } responseBytes, err := ioutil.ReadAll(response.Body) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Mar 09 19:29:33 UTC 2024 - 37.9K bytes - Viewed (0) -
src/net/http/request_test.go
t.Fatal(err) } req.Header.Set("Content-Type", mw.FormDataContentType()) res, err := cst.Client().Do(req) if err != nil { t.Fatal(err) } res.Body.Close() if g, w := res.StatusCode, StatusOK; g != w { t.Fatalf("Status code mismatch: got %d, want %d", g, w) } } func TestRequestRedirect(t *testing.T) { run(t, testRequestRedirect) } func testRequestRedirect(t *testing.T, mode testMode) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 18:42:34 UTC 2024 - 44K bytes - Viewed (0)