{"action":"created","issue":{"url":"https://api.github.com/repos/ufna/VaRest/issues/79","repository_url":"https://api.github.com/repos/ufna/VaRest","labels_url":"https://api.github.com/repos/ufna/VaRest/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/ufna/VaRest/issues/79/comments","events_url":"https://api.github.com/repos/ufna/VaRest/issues/79/events","html_url":"https://github.com/ufna/VaRest/issues/79","id":173037297,"number":79,"title":"Add ability to modify/set request headers","user":{"login":"Dr-Jerm","id":978924,"avatar_url":"https://avatars.githubusercontent.com/u/978924?v=3","gravatar_id":"","url":"https://api.github.com/users/Dr-Jerm","html_url":"https://github.com/Dr-Jerm","followers_url":"https://api.github.com/users/Dr-Jerm/followers","following_url":"https://api.github.com/users/Dr-Jerm/following{/other_user}","gists_url":"https://api.github.com/users/Dr-Jerm/gists{/gist_id}","starred_url":"https://api.github.com/users/Dr-Jerm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dr-Jerm/subscriptions","organizations_url":"https://api.github.com/users/Dr-Jerm/orgs","repos_url":"https://api.github.com/users/Dr-Jerm/repos","events_url":"https://api.github.com/users/Dr-Jerm/events{/privacy}","received_events_url":"https://api.github.com/users/Dr-Jerm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-24T19:27:50Z","updated_at":"2016-08-24T19:37:59Z","closed_at":null,"body":"Hello! Thanks for developing this and making it available. I would like have the ability to set arbitrary headers on calls so that I can implement some security/authentication. For example a dedicated server talking to a REST api will only accept requests with a specific header that the client builds will not have.\r\n\r\n\"authentication\": \"DSKLFJ302adKDLSFj\",\r\n\"source\": \"dedicated\"\r\nor something of the sort.\r\nI could include this in the json payload as a workaround, but generally security/authentication is maintained through headers."},"comment":{"url":"https://api.github.com/repos/ufna/VaRest/issues/comments/242183336","html_url":"https://github.com/ufna/VaRest/issues/79#issuecomment-242183336","issue_url":"https://api.github.com/repos/ufna/VaRest/issues/79","id":242183336,"user":{"login":"Dr-Jerm","id":978924,"avatar_url":"https://avatars.githubusercontent.com/u/978924?v=3","gravatar_id":"","url":"https://api.github.com/users/Dr-Jerm","html_url":"https://github.com/Dr-Jerm","followers_url":"https://api.github.com/users/Dr-Jerm/followers","following_url":"https://api.github.com/users/Dr-Jerm/following{/other_user}","gists_url":"https://api.github.com/users/Dr-Jerm/gists{/gist_id}","starred_url":"https://api.github.com/users/Dr-Jerm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dr-Jerm/subscriptions","organizations_url":"https://api.github.com/users/Dr-Jerm/orgs","repos_url":"https://api.github.com/users/Dr-Jerm/repos","events_url":"https://api.github.com/users/Dr-Jerm/events{/privacy}","received_events_url":"https://api.github.com/users/Dr-Jerm/received_events","type":"User","site_admin":false},"created_at":"2016-08-24T19:37:59Z","updated_at":"2016-08-24T19:37:59Z","body":"Looking a little further into it, it does appear that Unreal's HTTP library does offer pretty easy access to setting headers:\r\n```\r\nRequest->SetHeader(TEXT(\"User-Agent\"), \"X-UnrealEngine-Agent\");\r\n```\r\nSo it would just be a matter of integration that makes sense with your architecture."}}
{"actor":{"display_login":"Dr-Jerm"}}