eclipsesource/restfuse — pull request #14 by drejc (2012-08-23 11:20:35+00:00)
Title: Dynamic request manipulation

I have created an additional RequestContext, which can be manipulated before the request is executed.

I needed this because an authorization token must be retrieved and set prior to any REST API call.

As the Destination object is created upon each test call I have added a RequestContext property to this class, which is then used to insert header into the request prior execution.
The Destination object can be instantiated with a method call so It's the perfect place for my purpose.

Of course we can add additional features to the RequestContext (for now there is only a name value collection of headers present).

Please review and consider this (or a similar) solution.