示例#1
0
// ScopeMapFromRequest helper method for returning a FeatureMap scoped to
// the values found in DcdrScopesHeader.
func ScopeMapFromRequest(c client.IFace, r *http.Request) *models.FeatureMap {
	return c.WithScopes(GetScopes(r)...).ScopedMap()
}