{"action":"created","issue":{"url":"https://api.github.com/repos/trek/pretender/issues/83","labels_url":"https://api.github.com/repos/trek/pretender/issues/83/labels{/name}","comments_url":"https://api.github.com/repos/trek/pretender/issues/83/comments","events_url":"https://api.github.com/repos/trek/pretender/issues/83/events","html_url":"https://github.com/trek/pretender/issues/83","id":93856203,"number":83,"title":"preprocessing requests","user":{"login":"lessless","id":1539532,"avatar_url":"https://avatars.githubusercontent.com/u/1539532?v=3","gravatar_id":"","url":"https://api.github.com/users/lessless","html_url":"https://github.com/lessless","followers_url":"https://api.github.com/users/lessless/followers","following_url":"https://api.github.com/users/lessless/following{/other_user}","gists_url":"https://api.github.com/users/lessless/gists{/gist_id}","starred_url":"https://api.github.com/users/lessless/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lessless/subscriptions","organizations_url":"https://api.github.com/users/lessless/orgs","repos_url":"https://api.github.com/users/lessless/repos","events_url":"https://api.github.com/users/lessless/events{/privacy}","received_events_url":"https://api.github.com/users/lessless/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-08T18:18:46Z","updated_at":"2015-07-08T20:39:43Z","closed_at":null,"body":"Hello,\r\n\r\nsometimes urls requests are performed by 3rd party libraries and they use an absolute url, like ` http://localhost:4200/api/v1/s3_mock`, when initial path was only `/api/v1/s3_mock`.\r\n\r\nFor that case it will be good to have some request pre-processing hook(s), which will allow altering request url,  something analogues to the `server.prepareBody` and `server.prepareHeaders` hooks. "},"comment":{"url":"https://api.github.com/repos/trek/pretender/issues/comments/119725242","html_url":"https://github.com/trek/pretender/issues/83#issuecomment-119725242","issue_url":"https://api.github.com/repos/trek/pretender/issues/83","id":119725242,"user":{"login":"samselikoff","id":2922250,"avatar_url":"https://avatars.githubusercontent.com/u/2922250?v=3","gravatar_id":"","url":"https://api.github.com/users/samselikoff","html_url":"https://github.com/samselikoff","followers_url":"https://api.github.com/users/samselikoff/followers","following_url":"https://api.github.com/users/samselikoff/following{/other_user}","gists_url":"https://api.github.com/users/samselikoff/gists{/gist_id}","starred_url":"https://api.github.com/users/samselikoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samselikoff/subscriptions","organizations_url":"https://api.github.com/users/samselikoff/orgs","repos_url":"https://api.github.com/users/samselikoff/repos","events_url":"https://api.github.com/users/samselikoff/events{/privacy}","received_events_url":"https://api.github.com/users/samselikoff/received_events","type":"User","site_admin":false},"created_at":"2015-07-08T20:39:43Z","updated_at":"2015-07-08T20:39:43Z","body":"#66 will fix this"}}