HaProxy rate limit

Hello
what is the best method for rate limit for HAProxy version 2.2.2 ?

There are several rate limit method :set maximim connections, sliding windows rate limiting , rate limit by fixed time window, rate limit by url, rate limit by url parameter

Thanks in advance