Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for StatusCode (0.17 sec)

  1. cmd/server_test.go

    func verifyError(c *check, response *http.Response, code, description string, statusCode int) {
    	c.Helper()
    	data, err := io.ReadAll(response.Body)
    	c.Assert(err, nil)
    	errorResponse := APIErrorResponse{}
    	err = xml.Unmarshal(data, &errorResponse)
    	c.Assert(err, nil)
    	c.Assert(errorResponse.Code, code)
    	c.Assert(errorResponse.Message, description)
    	c.Assert(response.StatusCode, statusCode)
    }
    
    func runAllTests(suite *TestSuiteCommon, c *check) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 115.3K bytes
    - Viewed (0)
  2. src/net/http/serve_test.go

    	// to ensure that's not the case.
    	time.Sleep(2 * timeout)
    	res, err := c.Get(ts.URL)
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer res.Body.Close()
    	if res.StatusCode != StatusNoContent {
    		t.Errorf("got res.StatusCode %d, want %v", res.StatusCode, StatusNoContent)
    	}
    }
    
    func TestTimeoutHandlerContextCanceled(t *testing.T) { run(t, testTimeoutHandlerContextCanceled) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  3. cmd/object-handlers.go

    				return
    			}
    
    			okSt := (ci.StatusCode == http.StatusOK || ci.StatusCode == http.StatusPartialContent ||
    				ci.StatusCode == http.StatusPreconditionFailed || ci.StatusCode == http.StatusNotModified)
    			if okSt {
    				ci.WriteHeaders(w, func() {
    					// set common headers
    					setCommonHeaders(w)
    				}, func() {
    					okSt := (ci.StatusCode == http.StatusOK || ci.StatusCode == http.StatusPartialContent)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 14 13:28:35 UTC 2024
    - 124.2K bytes
    - Viewed (0)
  4. src/net/http/transport_test.go

    		t.Helper()
    		res, err := c.Do(req)
    		if err != nil {
    			t.Fatalf("%s: Do: %v", name, err)
    		}
    		if res.StatusCode != wantCode {
    			t.Fatalf("%s: Response Statuscode=%d; want %d", name, res.StatusCode, wantCode)
    		}
    		if id, idBack := req.Header.Get("Request-Id"), res.Header.Get("Echo-Request-Id"); id != "" && id != idBack {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  5. cmd/admin-handlers.go

    		if nerr.Err != nil {
    			err := AdminError{
    				Code:       AdminUpdateApplyFailure,
    				Message:    nerr.Err.Error(),
    				StatusCode: http.StatusInternalServerError,
    			}
    			logger.GetReqInfo(ctx).SetTags("peerAddress", nerr.Host.String())
    			adminLogIf(ctx, fmt.Errorf("server update failed with %w", err))
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 98K bytes
    - Viewed (0)
  6. tests/integration/pilot/common/routing.go

    			statusCode: http.StatusOK,
    			from:       t.Apps.A,
    			to:         t.Apps.External.All[0].Address(),
    			protocol:   protocol.HTTPS,
    			port:       443,
    		},
    		// TC2: Same test as TC1, but use a fake external ip in destination for connectivity.
    		{
    			name:       "traffic from outboundTrafficPolicy REGISTRY_ONLY to allowed host",
    			statusCode: http.StatusOK,
    			from:       t.Apps.A,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 21:52:51 UTC 2024
    - 135.9K bytes
    - Viewed (0)
  7. pkg/controller/garbagecollector/garbagecollector_test.go

    func (f *fakeAction) String() string {
    	return strings.Join([]string{f.method, f.path}, "=")
    }
    
    type FakeResponse struct {
    	statusCode int
    	content    []byte
    }
    
    // fakeActionHandler holds a list of fakeActions received
    type fakeActionHandler struct {
    	// statusCode and content returned by this handler for different method + path.
    	response map[string]FakeResponse
    
    	lock    sync.Mutex
    	actions []fakeAction
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 111.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/flatbuffer_export.cc

          return tflite::TensorType_COMPLEX128;
        }
        return Status(absl::StatusCode::kInvalidArgument, "Unsupported type");
      } else if (auto itype = mlir::dyn_cast<mlir::IntegerType>(type)) {
        switch (itype.getWidth()) {
          case 1:
            return tflite::TensorType_BOOL;
          case 4:
            if (itype.isUnsigned()) {
              return Status(absl::StatusCode::kInvalidArgument,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 164.5K bytes
    - Viewed (0)
  9. src/net/http/server.go

    	// sent, but not with 1xx headers.
    	//
    	// The server will automatically send a 100 (Continue) header
    	// on the first read from the request body if the request has
    	// an "Expect: 100-continue" header.
    	WriteHeader(statusCode int)
    }
    
    // The Flusher interface is implemented by ResponseWriters that allow
    // an HTTP handler to flush buffered data to the client.
    //
    // The default HTTP/1.x and HTTP/2 [ResponseWriter] implementations
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 123.4K bytes
    - Viewed (0)
Back to top