Dynamic header rules

Hello,
I'm trying to implement two routers that are passing traffic to different services based on header and I wonder if Traefik supports some kind of data storage (inside of Traefik or can access to external one), that can be used inside of the routers section?