func (rule L7Rule) GetHTTPKeys(cookie keyvalue.Cookie, trafficType kernel.TrafficType, action interface{}) []*keyvalue.KeyValue {
	rep := []*keyvalue.KeyValue{}
	for _, p := range rule.HTTP {
		rep = append(
			rep,
			&keyvalue.KeyValue{
				Key: keyvalue.NewHTTPKey(
					trafficType,
					cookie,
					p.Method,
					p.URI,
				),
				Value: action,
			},
		)
	}
	return rep
}
// GetHTTPKeys - Returns the HTTP keys for this rule
Returns the HTTP keys for this rule
// GetHTTPKeys - Returns the HTTP keys for this rule
func (rule L7Rule) GetHTTPKeys(cookie keyvalue.Cookie, trafficType kernel.TrafficType, action interface{}) []*keyvalue.KeyValue {
	rep := []*keyvalue.KeyValue{}
	for _, p := range rule.HTTP {
		rep = append(
			rep,
			&keyvalue.KeyValue{
				Key: keyvalue.NewHTTPKey(
					trafficType,
					cookie,
					p.Method,
					p.URI,
				),
				Value: action,
			},
		)
	}
	return rep
}
func ( rule L7Rule ) GetHTTPKeys ( cookie keyvalue . Cookie , trafficType kernel . TrafficType , action interface { } ) [ ] * keyvalue . KeyValue { rep := [ ] * keyvalue . KeyValue { } for _ , p := range rule . HTTP { rep = append ( rep , & keyvalue . KeyValue { Key : keyvalue . NewHTTPKey ( trafficType , cookie , p . Method , p . URI , ) , Value : action , } , ) } return rep }
Returns the HTTP keys for this rule
Returns the HTTP keys for this rule