// AddMultiple adds a list of cookies.
778
func AddMultiple(cookies []*http.Cookie) p.Plugin {
	return p.NewRequestPlugin(func(ctx *c.Context, h c.Handler) {
		for _, cookie := range cookies {
			ctx.Request.AddCookie(cookie)
		}
		h.Next(ctx)
	})
}
622847
func ParseMultiple(headers []string) Links {
	links := make(Links, 0)
	for _, header := range headers {
		links = append(links, Parse(header)...)
	}
	return links
}
134289
func (api *SIMAPI) SetFilterMultiBy(key string, value interface{}) {
	api.filterBy(key, value, true)
}
1196681
func (c *Client) SubscribeMultiple(filters map[string]byte, callback MessageHandler) Token {
	var err error
	token := newToken(packets.Subscribe).(*SubscribeToken)
	DEBUG.Println(CLI, "enter SubscribeMultiple")
	if !c.IsConnected() {
		token.err = ErrNotConnected
		token.flowComplete()
		return token
	}
	sub := packets.NewControlPacket(packets.Subscribe).(*packets.SubscribePacket)
	if sub.Topics, sub.Qoss, err = validateSubscribeMap(filters); err != nil {
		token.err = err
		return token
	}

	if callback != nil {
		for topic := range filters {
			c.msgRouter.addRoute(topic, callback)
		}
	}
	token.subs = make([]string, len(sub.Topics))
	copy(token.subs, sub.Topics)
	c.oboundP <- &PacketAndToken{p: sub, t: token}
	DEBUG.Println(CLI, "exit SubscribeMultiple")
	return token
}
714162
func (api *InternetAPI) SetFilterMultiBy(key string, value interface{}) {
	api.filterBy(key, value, true)
}
1025733
func (api *MobileGatewayAPI) SetFilterMultiBy(key string, value interface{}) {
	api.filterBy(key, value, true)
}
750243
func (api *IPv6NetAPI) SetFilterMultiBy(key string, value interface{}) {
	api.filterBy(key, value, true)
}
353869
func (g *Generator) AddMultipleProcessEnv(envs []string) {
	g.initConfigProcess()

	for _, val := range envs {
		split := strings.SplitN(val, "=", 2)
		g.addEnv(val, split[0])
	}
}
194798
func (api *InterfaceAPI) SetFilterMultiBy(key string, value interface{}) {
	api.filterBy(key, value, true)
}
491926
func (c *Client) AddCookie(cookie *http.Cookie) *Client {
	c.Use(cookies.Add(cookie))
	return c
}
1152517
func (s *SuperAgent) AddCookie(c *http.Cookie) *SuperAgent {
	s.Cookies = append(s.Cookies, c)
	return s
}
844290
func (s *TestInvokeAuthorizerInput) SetMultiValueHeaders(v map[string][]*string) *TestInvokeAuthorizerInput {
	s.MultiValueHeaders = v
	return s
}
800464
func (api *ZoneAPI) SetFilterMultiBy(key string, value interface{}) {
	api.filterBy(key, value, true)
}
322347
func (c *RedisClient) AddMulti(rs []AddRequest) ([]string, error) {
	for _, r := range rs {
		if err := c.conn.Send("ADDJOB", addArgs(r)...); err != nil {
			return nil, err
		}
	}
	// flush the output buffer and receive pending replies
	replies, err := redis.Values(c.conn.Do(""))
	ids := make([]string, len(replies))
	for i, val := range replies {
		if id, ok := val.(string); ok {
			ids[i] = id
		}
	}
	return ids, err
}
205428
func (api *SSHKeyAPI) SetFilterMultiBy(key string, value interface{}) {
	api.filterBy(key, value, true)
}
310747
func (api *ProductPrivateHostAPI) SetFilterMultiBy(key string, value interface{}) {
	api.filterBy(key, value, true)
}
1356710
func (c *MockClient) AddMulti(items []*Item) []MutateResponse {
	c.mutex.Lock()
	defer c.mutex.Unlock()

	res := make([]MutateResponse, len(items))
	for i, item := range items {
		res[i] = c.addHelper(item)
	}
	return res
}