code: func NewAttributes(event *audit.Event) (authorizer.Attributes, error) {
  	a := attributes{
  		event: event,
  	}
  	if event.ObjectRef == nil {
  		u, err := url.ParseRequestURI(a.event.RequestURI)
  		if err != nil {
  			return nil, fmt.Errorf("could not parse url: %v", err)
  		}
  		a.path = u.Path
  	}
  	return &a, nil
  }
docs: // NewAttributes returns a new attributes struct and parsed request uri
  // if needed