I've been looking for this quite a time. I'd not open a thread for this dumb question but I couldn't find appropriate documentation. I found that @before annotation should be used, but I've got no idea how... So I have the following interface

...
@rootPathFromName
public interface ITroy
{

@path("/test")
string getTest();

}
...

with proper implementation. However, I've got no idea how to access headers from getTest method.

Thanks