Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for StatusCreated (0.17 sec)

  1. src/net/http/status.go

    	StatusSwitchingProtocols = 101 // RFC 9110, 15.2.2
    	StatusProcessing         = 102 // RFC 2518, 10.1
    	StatusEarlyHints         = 103 // RFC 8297
    
    	StatusOK                   = 200 // RFC 9110, 15.3.1
    	StatusCreated              = 201 // RFC 9110, 15.3.2
    	StatusAccepted             = 202 // RFC 9110, 15.3.3
    	StatusNonAuthoritativeInfo = 203 // RFC 9110, 15.3.4
    	StatusNoContent            = 204 // RFC 9110, 15.3.5
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 10 23:30:35 UTC 2022
    - 7.5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/endpoints/apiserver_test.go

    			{name: "post-warn-validation", path: "/namespaces/default/simples", verb: "POST", data: validJSONDataPost, queryParams: warnFieldValidation, expectedStatusCode: http.StatusCreated},
    			{name: "post-ignore-validation", path: "/namespaces/default/simples", verb: "POST", data: validJSONDataPost, queryParams: ignoreFieldValidation, expectedStatusCode: http.StatusCreated},
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 20:15:22 UTC 2023
    - 158.7K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/server/httplog/httplog_test.go

    func TestStatusIsNot(t *testing.T) {
    	statusTestTable := []struct {
    		status   int
    		statuses []int
    		want     bool
    	}{
    		{http.StatusOK, []int{}, true},
    		{http.StatusOK, []int{http.StatusOK}, false},
    		{http.StatusCreated, []int{http.StatusOK, http.StatusAccepted}, true},
    	}
    	for _, tt := range statusTestTable {
    		sp := StatusIsNot(tt.statuses...)
    		got := sp(tt.status)
    		if got != tt.want {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 05 18:05:09 UTC 2021
    - 6.2K bytes
    - Viewed (0)
  4. cmd/object-lambda-handlers.go

    	"Processing":                      http.StatusProcessing,
    	"Early Hints":                     http.StatusEarlyHints,
    	"OK":                              http.StatusOK,
    	"Created":                         http.StatusCreated,
    	"Accepted":                        http.StatusAccepted,
    	"Non-Authoritative Information":   http.StatusNonAuthoritativeInfo,
    	"No Content":                      http.StatusNoContent,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/endpoints/installer.go

    	// http.StatusServiceUnavailable
    	// and api error codes
    	// Note that if we specify a versioned Status object here, we may need to
    	// create one for the tests, also
    	// Success:
    	// http.StatusOK, http.StatusCreated, http.StatusAccepted, http.StatusNoContent
    	//
    	// test/integration/auth_test.go is currently the most comprehensive status code test
    
    	for _, s := range a.group.Serializer.SupportedMediaTypes() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 18:15:22 UTC 2024
    - 51.5K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/builder/builder.go

    	// Build responses
    	switch actionVerb {
    	case "post":
    		route.Returns(http.StatusAccepted, "Accepted", sample)
    		route.Returns(http.StatusCreated, "Created", sample)
    	case "delete":
    		route.Returns(http.StatusAccepted, "Accepted", sample)
    	case "put":
    		route.Returns(http.StatusCreated, "Created", sample)
    	}
    
    	return route
    }
    
    // buildKubeNative builds input schema with Kubernetes' native object meta, type meta and
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/update.go

    			scope.err(err, w, req)
    			return
    		}
    		span.AddEvent("Write to database call succeeded", attribute.Int("len", len(body)))
    
    		status := http.StatusOK
    		if wasCreated {
    			status = http.StatusCreated
    		}
    
    		span.AddEvent("About to write a response")
    		defer span.AddEvent("Writing http response done")
    		transformResponseObject(ctx, scope, req, w, status, outputMediaType, result)
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 20:19:46 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/create.go

    			scope.err(err, w, req)
    			return
    		}
    		span.AddEvent("Write to database call succeeded", attribute.Int("len", len(body)))
    
    		code := http.StatusCreated
    		status, ok := result.(*metav1.Status)
    		if ok && status.Code == 0 {
    			status.Code = int32(code)
    		}
    
    		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: Mon May 01 20:19:46 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  9. cmd/bucket-handlers_test.go

    	// Since `apiRouter` satisfies `http.Handler` it has a ServeHTTP to execute the logic of the handler.
    	// Call the ServeHTTP to execute the handler.
    	apiRouter.ServeHTTP(rec, req)
    	switch rec.Code {
    	case http.StatusOK, http.StatusCreated, http.StatusAccepted, http.StatusNoContent:
    		t.Fatalf("Test %v: expected failure, but succeeded with %v", instanceType, rec.Code)
    	}
    
    	// Verify response of the V2 signed HTTP request.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 39.8K bytes
    - Viewed (0)
  10. internal/logger/target/http/http.go

    	}
    
    	// Drain any response.
    	xhttp.DrainBody(resp.Body)
    
    	switch resp.StatusCode {
    	case http.StatusOK, http.StatusCreated, http.StatusAccepted, http.StatusNoContent:
    		// accepted HTTP status codes.
    		return nil
    	case http.StatusForbidden:
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jun 02 03:03:39 UTC 2024
    - 14.9K bytes
    - Viewed (0)
Back to top