How to get the request context in a custom directive?

I'm writing a custom directive in Spray that is going to manage the rate limiting for any user request. I'll have a LimitManager somewhere that will handle custom limits and rules for every reques...