code: func (a *ActionDefinition) CanonicalScheme() string {
  	if a.WebSocket() {
  		for _, s := range a.EffectiveSchemes() {
  			if s == "wss" {
  				return s
  			}
  		}
  		return "ws"
  	}
  	for _, s := range a.EffectiveSchemes() {
  		if s == "https" {
  			return s
  		}
  	}
  	return "http"
  }
docs: // CanonicalScheme returns the preferred scheme for making requests. Favor secure schemes.