{"action":"opened","issue":{"url":"https://api.github.com/repos/selesy/test/issues/14","labels_url":"https://api.github.com/repos/selesy/test/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/selesy/test/issues/14/comments","events_url":"https://api.github.com/repos/selesy/test/issues/14/events","html_url":"https://github.com/selesy/test/issues/14","id":60214791,"number":14,"title":"Dynamic request manipulation","user":{"login":"smoyer64","id":328333,"avatar_url":"https://avatars.githubusercontent.com/u/328333?v=3","gravatar_id":"","url":"https://api.github.com/users/smoyer64","html_url":"https://github.com/smoyer64","followers_url":"https://api.github.com/users/smoyer64/followers","following_url":"https://api.github.com/users/smoyer64/following{/other_user}","gists_url":"https://api.github.com/users/smoyer64/gists{/gist_id}","starred_url":"https://api.github.com/users/smoyer64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smoyer64/subscriptions","organizations_url":"https://api.github.com/users/smoyer64/orgs","repos_url":"https://api.github.com/users/smoyer64/repos","events_url":"https://api.github.com/users/smoyer64/events{/privacy}","received_events_url":"https://api.github.com/users/smoyer64/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-07T17:07:27Z","updated_at":"2015-03-07T17:07:27Z","closed_at":"2015-03-07T17:07:27Z","body":"I have created an additional RequestContext, which can be manipulated before the request is executed.\n\nI needed this because an authorization token must be retrieved and set prior to any REST API call. \n\nAs 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.\nThe Destination object can be instantiated with a method call so It's the perfect place for my purpose.\n\nOf course we can add additional features to the RequestContext (for now there is only a name value collection of headers present).\n\nPlease review and consider this (or a similar) solution."}}