Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 77 for StatusOK (0.13 sec)

  1. internal/rest/client.go

    	// If trace is enabled, dump http request and response,
    	// except when the traceErrorsOnly enabled and the response's status code is ok
    	if c.TraceOutput != nil && resp.StatusCode != http.StatusOK {
    		c.dumpHTTP(req, resp)
    	}
    
    	if resp.StatusCode != http.StatusOK {
    		// If server returns 412 pre-condition failed, it would
    		// mean that authentication succeeded, but another
    		// side-channel check has failed, we shall take
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  2. tests/integration/security/filebased_tls_origination/egress_gateway_origination_test.go

    				//      --> externalServer(443 with only Simple TLS used and client cert is not verified)
    				"Mutual TLS origination from egress gateway to https endpoint": {
    					destinationRuleMode: "MUTUAL",
    					code:                http.StatusOK,
    					gateway:             true,
    					fakeRootCert:        false,
    				},
    				// 2. Simple TLS case:
    				//    internalClient ) ---HTTP request (Host: some-external-site.com----> Hits listener 0.0.0.0_80 ->
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/responsewriters/writers.go

    	status := ErrorToAPIStatus(err)
    	candidateStatusCode := int(status.Code)
    	// if the current status code is successful, allow the error's status code to overwrite it
    	if statusCode >= http.StatusOK && statusCode < http.StatusBadRequest {
    		w.statusCode = candidateStatusCode
    	}
    	output, err := runtime.Encode(encoder, status)
    	if err != nil {
    		w.mediaType = "text/plain"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 07 18:21:43 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/get.go

    		if err != nil {
    			scope.err(err, w, req)
    			return
    		}
    
    		span.AddEvent("About to write a response")
    		defer span.AddEvent("Writing http response done")
    		transformResponseObject(ctx, scope, req, w, http.StatusOK, outputMediaType, result)
    	}
    }
    
    // GetResource returns a function that handles retrieving a single resource from a rest.Storage object.
    func GetResource(r rest.Getter, scope *RequestScope) http.HandlerFunc {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 10:22:16 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  5. pkg/test/framework/components/echo/check/checkers.go

    }
    
    // OK is shorthand for NoErrorAndStatus(200).
    func OK() echo.Checker {
    	return NoErrorAndStatus(http.StatusOK)
    }
    
    // NotOK is shorthand for ErrorOrNotStatus(http.StatusOK).
    func NotOK() echo.Checker {
    	return ErrorOrNotStatus(http.StatusOK)
    }
    
    // NoErrorAndStatus is checks that no error occurred and that the returned status code matches the expected
    // value.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 03 16:19:07 UTC 2023
    - 17.5K bytes
    - Viewed (0)
  6. src/net/http/fcgi/child.go

    	}
    }
    
    func (r *response) Header() http.Header {
    	return r.header
    }
    
    func (r *response) Write(p []byte) (n int, err error) {
    	if !r.wroteHeader {
    		r.WriteHeader(http.StatusOK)
    	}
    	if !r.wroteCGIHeader {
    		r.writeCGIHeader(p)
    	}
    	return r.w.Write(p)
    }
    
    func (r *response) WriteHeader(code int) {
    	if r.wroteHeader {
    		return
    	}
    	r.wroteHeader = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  7. tests/integration/security/sds_ingress/util/util.go

    			for _, h := range tests {
    				ctx.NewSubTest(h.Host).Run(func(t framework.TestContext) {
    					SendRequestOrFail(t, ing, h.Host, h.CredentialName, callType, tlsContext,
    						ExpectedResponse{StatusCode: http.StatusOK})
    				})
    			}
    		})
    }
    
    // RunTestMultiTLSGateways deploys multiple TLS gateways with SDS enabled, and creates kubernetes secret that stores
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jul 25 05:12:36 UTC 2023
    - 20.2K bytes
    - Viewed (0)
  8. pkg/kube/inject/webhook_test.go

    			body:           validReview,
    			contentType:    "application/json",
    			wantAllowed:    true,
    			wantStatusCode: http.StatusOK,
    		},
    		{
    			name:           "valid(v1 version)",
    			body:           validReviewV1,
    			contentType:    "application/json",
    			wantAllowed:    true,
    			wantStatusCode: http.StatusOK,
    		},
    		{
    			name:           "skipped",
    			body:           skipReview,
    			contentType:    "application/json",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 17 20:25:52 UTC 2023
    - 39K bytes
    - Viewed (1)
  9. staging/src/k8s.io/apiserver/pkg/endpoints/watch_test.go

    	}
    	request.Header.Add("Accept", "application/json")
    
    	response, err := http.DefaultClient.Do(request)
    	if err != nil {
    		t.Fatalf("unexpected error: %v", err)
    	}
    
    	if response.StatusCode != http.StatusOK {
    		b, _ := ioutil.ReadAll(response.Body)
    		t.Fatalf("Unexpected response: %#v\n%s", response, string(b))
    	}
    
    	// Close response to cause a cancel on the server
    	if err := response.Body.Close(); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 30 17:27:39 UTC 2023
    - 30K bytes
    - Viewed (0)
  10. istioctl/pkg/admin/istiodconfig.go

    	var scopeInfos []*ScopeInfo
    	resp, err := c.httpClient.Get(c.baseURL.String())
    	if err != nil {
    		return nil, err
    	}
    	defer resp.Body.Close()
    	if resp.StatusCode != http.StatusOK {
    		return nil, fmt.Errorf("request not successful %s", resp.Status)
    	}
    
    	err = json.NewDecoder(resp.Body).Decode(&scopeInfos)
    	if err != nil {
    		return nil, fmt.Errorf("cannot deserialize response %s", err)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 13 05:23:38 UTC 2024
    - 13.5K bytes
    - Viewed (0)
Back to top