Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 116 for StatusCode (0.28 sec)

  1. platforms/software/resources-s3/src/integTest/groovy/org/gradle/integtests/resource/s3/fixtures/S3Server.groovy

            stubMetaDataLightWeightGet(url, 500)
        }
    
        def stubMetaDataMissing(String url) {
            stubFileNotFound(url)
        }
    
        private stubMetaDataLightWeightGet(String url, int statusCode) {
            HttpStub httpStub = HttpStub.stubInteraction {
                request {
                    method = 'GET'
                    path = url
                    headers = [
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 22.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/cc/saved_model_export_test.cc

      const absl::StatusOr<std::optional<SaverDef>> saver_def =
          CreateSaverDef(control_ret_node_names, graph_def);
      EXPECT_THAT(
          saver_def,
          StatusIs(
              absl::StatusCode::kInternal,
              HasSubstr(
                  "should be either all empty strings or all non-empty strings")));
    }
    
    // Testing ConvertMlirModuleToExportedModel requires parsing MLIR string to
    // ModuleOp.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 20 11:11:25 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  3. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/HttpServer.groovy

         */
        void expectPut(String path, File destFile, int statusCode = HttpStatus.OK_200, PasswordCredentials credentials = null, long expectedContentLength = -1) {
            def action = new ActionSupport("write request to $destFile.name (content length: $expectedContentLength) and return status $statusCode") {
                void handle(HttpServletRequest request, HttpServletResponse response) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 32.3K bytes
    - Viewed (0)
  4. pkg/controller/resourcequota/resource_quota_controller_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
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 12 16:29:33 UTC 2023
    - 42.6K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/response.go

    // Will write the complete response object.
    // transformResponseObject is used only for handling non-streaming requests.
    func transformResponseObject(ctx context.Context, scope *RequestScope, req *http.Request, w http.ResponseWriter, statusCode int, mediaType negotiation.MediaTypeOptions, result runtime.Object) {
    	options, err := optionsForTransform(mediaType, req)
    	if err != nil {
    		scope.err(err, w, req)
    		return
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 18 09:07:03 UTC 2023
    - 16.5K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/rest.go

    type responder struct {
    	scope *RequestScope
    	req   *http.Request
    	w     http.ResponseWriter
    }
    
    func (r *responder) Object(statusCode int, obj runtime.Object) {
    	responsewriters.WriteObjectNegotiated(r.scope.Serializer, r.scope, r.scope.Kind.GroupVersion(), r.w, r.req, statusCode, obj, false)
    }
    
    func (r *responder) Error(err error) {
    	r.scope.err(err, r.w, r.req)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 21:44:00 UTC 2023
    - 17K bytes
    - Viewed (0)
  7. cluster/gce/windows/common.psm1

          # DO NOT replace with EnsureSuccessStatusCode(), it prints the
          # OAuth2 bearer token.
          if (-not $httpResponseMessage.Result.IsSuccessStatusCode) {
            $statusCode = $httpResponseMessage.Result.StatusCode
            throw "Downloading ${Url} returned status code ${statusCode}, retrying."
          }
          try {
            $outFileStream = [System.IO.FileStream]::new($OutFile, [System.IO.FileMode]::Create, [System.IO.FileAccess]::Write)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 19 14:47:38 UTC 2022
    - 25.4K bytes
    - Viewed (0)
  8. src/net/http/clientserver_test.go

    	req.Header.Set("Expect", "100-continue")
    	res, err := cst.tr.RoundTrip(req)
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer res.Body.Close()
    	if res.StatusCode != StatusUnauthorized {
    		t.Errorf("status code = %v; want %v", res.StatusCode, StatusUnauthorized)
    	}
    }
    
    func TestServerUndeclaredTrailers(t *testing.T) { run(t, testServerUndeclaredTrailers) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 46.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/pjrt_device_context.cc

          [cpu_tensor = *cpu_tensor]() { /* frees tensor */ }, pjrt_device,
          device_layout);
      if (first_try_buffer.ok()) {
        return std::move(*first_try_buffer);
      }
      if (first_try_buffer.status().code() == absl::StatusCode::kUnimplemented) {
        LOG_FIRST_N(WARNING, 1)
            << first_try_buffer.status()
            << "; fallback to BufferFromHostBuffer without device layout.";
        TF_ASSIGN_OR_RETURN(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 08:49:31 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/util/peerproxy/peerproxy_handler_test.go

    			}
    			req.Header.Set(PeerProxiedHeader, tt.peerproxiedHeader)
    
    			resp, _ := requestGetter(req)
    
    			// compare response
    			assert.Equal(t, tt.expectedStatus, resp.StatusCode)
    
    			// compare metric
    			if tt.want != "" {
    				if err := testutil.GatherAndCompare(legacyregistry.DefaultGatherer, strings.NewReader(tt.want), tt.metrics...); err != nil {
    					t.Fatal(err)
    				}
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 10.8K bytes
    - Viewed (0)
Back to top