mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-10-31 13:50:01 +00:00 
			
		
		
		
	godep restore pushd $GOPATH/src/github.com/appc/spec git co master popd go get go4.org/errorutil rm -rf Godeps godep save ./... git add vendor git add -f $(git ls-files --other vendor/) git co -- Godeps/LICENSES Godeps/.license_file_state Godeps/OWNERS
		
			
				
	
	
		
			19 lines
		
	
	
		
			614 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			614 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package restful
 | |
| 
 | |
| // Copyright 2013 Ernest Micklei. All rights reserved.
 | |
| // Use of this source code is governed by a license
 | |
| // that can be found in the LICENSE file.
 | |
| 
 | |
| import "net/http"
 | |
| 
 | |
| // A RouteSelector finds the best matching Route given the input HTTP Request
 | |
| type RouteSelector interface {
 | |
| 
 | |
| 	// SelectRoute finds a Route given the input HTTP Request and a list of WebServices.
 | |
| 	// It returns a selected Route and its containing WebService or an error indicating
 | |
| 	// a problem.
 | |
| 	SelectRoute(
 | |
| 		webServices []*WebService,
 | |
| 		httpRequest *http.Request) (selectedService *WebService, selected *Route, err error)
 | |
| }
 |