Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for pathParts (0.19 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_discovery.go

    }
    
    func (r *versionDiscoveryHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) {
    	pathParts := splitPath(req.URL.Path)
    	// only match /apis/<group>/<version>
    	if len(pathParts) != 3 || pathParts[0] != "apis" {
    		r.delegate.ServeHTTP(w, req)
    		return
    	}
    	discovery, ok := r.getDiscovery(schema.GroupVersion{Group: pathParts[1], Version: pathParts[2]})
    	if !ok {
    		r.delegate.ServeHTTP(w, req)
    		return
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 06 10:06:31 UTC 2017
    - 3.2K bytes
    - Viewed (0)
  2. platforms/software/version-control/src/main/java/org/gradle/vcs/git/internal/DefaultGitVersionControlSpec.java

        @Override
        public String getUniqueId() {
            return "git-repo:" + getUrl().toASCIIString();
        }
    
        @Override
        public String getRepoName() {
            String[] pathParts = url.getPath().split("/");
            String repoPart = pathParts[pathParts.length-1];
            if (repoPart.endsWith(".git")) {
                repoPart = repoPart.substring(0, repoPart.indexOf(".git"));
            }
            return repoPart;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  3. samples/bookinfo/src/details/details.rb

        res.body = {'status' => 'Details is healthy'}.to_json
        res['Content-Type'] = 'application/json'
    end
    
    server.mount_proc '/details' do |req, res|
        pathParts = req.path.split('/')
        headers = get_forward_headers(req)
    
        begin
            begin
              id = Integer(pathParts[-1])
            rescue
              raise 'please provide numeric product id'
            end
            details = get_book_details(id, headers)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 10 14:35:54 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_handler.go

    		)
    		return
    	}
    	if !requestInfo.IsResourceRequest {
    		pathParts := splitPath(requestInfo.Path)
    		// only match /apis/<group>/<version>
    		// only registered under /apis
    		if len(pathParts) == 3 {
    			r.versionDiscoveryHandler.ServeHTTP(w, req)
    			return
    		}
    		// only match /apis/<group>
    		if len(pathParts) == 2 {
    			r.groupDiscoveryHandler.ServeHTTP(w, req)
    			return
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 52.9K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/main/java/org/gradle/internal/resource/local/ivy/LocallyAvailableResourceFinderFactory.java

            } else {
                chopAt = patternPos;
            }
            String pathPart = pattern.substring(0, chopAt);
            String patternPart = pattern.substring(chopAt + 1);
            for (File rootCachesDirectory : rootCachesDirectories) {
                addForPattern(finders, new File(rootCachesDirectory, pathPart), new IvyResourcePattern(patternPart));
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 8.8K bytes
    - Viewed (0)
Back to top