func (c *APIClient) applyOptions(req *http.Request, options ...CallOption) error {
	var err error
	for _, opt := range options {
		if err = opt(req); err != nil {
			return err
		}
	}
	return nil
}
// applyOptions applies options to a request.
applyOptions applies options to a request.
// applyOptions applies options to a request .
func (c *APIClient) applyOptions(req *http.Request, options ...CallOption) error {
	var err error
	for _, opt := range options {
		if err = opt(req); err != nil {
			return err
		}
	}
	return nil
}
func ( c * APIClient ) applyOptions ( req * http . Request , options ... CallOption ) error { var err error for _ , opt := range options { if err = opt ( req ) ; err != nil { return err } } return nil }
applyOptions applies options to a request.
applyOptions applies options to a request .