pass request object to encoder so encoder can make decisions based on request specific factors (like url args)