code: func getRequestOptions(req *http.Request, scope *RequestScope, into runtime.Object, subpath bool, subpathKey string, isSubresource bool) error {
  	if into == nil {
  		return nil
  	}
  
  	query := req.URL.Query()
  	if subpath {
  		newQuery := make(url.Values)
  		for k, v := range query {
  			newQuery[k] = v
  		}
  
  		ctx := req.Context()
  		requestInfo, _ := request.RequestInfoFrom(ctx)
  		startingIndex := 2
  		if isSubresource {
  			startingIndex = 3
  		}
  
  		p := strings.Join(requestInfo.Parts[startingIndex:], "/")
  
  		// ensure non-empty subpaths correctly reflect a leading slash
  		if len(p) > 0 && !strings.HasPrefix(p, "/") {
  			p = "/" + p
  		}
  
  		// ensure subpaths correctly reflect the presence of a trailing slash on the original request
  		if strings.HasSuffix(requestInfo.Path, "/") && !strings.HasSuffix(p, "/") {
  			p += "/"
  		}
  
  		newQuery[subpathKey] = []string{p}
  		query = newQuery
  	}
  	return scope.ParameterCodec.DecodeParameters(query, scope.Kind.GroupVersion(), into)
  }
docs: // getRequestOptions parses out options and can include path information.  The path information shouldn't include the subresource.