Allow different rate limit for different incoming request size

Hi,

Is it possible to set the rate limit based on the incoming request size?
For example, for my endpoint, I wish I could set the rate limit to 10 req/s if the incoming request size is 5MB, and 100 req/s if the incoming request size is 50kb.

If yes, how to configure that? Thanks!

Cheers,
Joe