Building REST Resource with custom headers.

While creating the new REST Resource, How do we configure our REST resource to accept custom headers?

I am exposing one of the service as REST/POST, I will receive some custom headers when someone invokes this REST resource. How would I handle the Headers?