{"action":"created","issue":{"url":"https://api.github.com/repos/appcelerator/titanium_mobile/issues/8230","repository_url":"https://api.github.com/repos/appcelerator/titanium_mobile","labels_url":"https://api.github.com/repos/appcelerator/titanium_mobile/issues/8230/labels{/name}","comments_url":"https://api.github.com/repos/appcelerator/titanium_mobile/issues/8230/comments","events_url":"https://api.github.com/repos/appcelerator/titanium_mobile/issues/8230/events","html_url":"https://github.com/appcelerator/titanium_mobile/pull/8230","id":171247487,"number":8230,"title":"[TIMOB-17467] Android: Add setRequestHeaders() to WebView","user":{"login":"m1ga","id":4334997,"avatar_url":"https://avatars.githubusercontent.com/u/4334997?v=3","gravatar_id":"","url":"https://api.github.com/users/m1ga","html_url":"https://github.com/m1ga","followers_url":"https://api.github.com/users/m1ga/followers","following_url":"https://api.github.com/users/m1ga/following{/other_user}","gists_url":"https://api.github.com/users/m1ga/gists{/gist_id}","starred_url":"https://api.github.com/users/m1ga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m1ga/subscriptions","organizations_url":"https://api.github.com/users/m1ga/orgs","repos_url":"https://api.github.com/users/m1ga/repos","events_url":"https://api.github.com/users/m1ga/events{/privacy}","received_events_url":"https://api.github.com/users/m1ga/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"ashcoding","id":9311952,"avatar_url":"https://avatars.githubusercontent.com/u/9311952?v=3","gravatar_id":"","url":"https://api.github.com/users/ashcoding","html_url":"https://github.com/ashcoding","followers_url":"https://api.github.com/users/ashcoding/followers","following_url":"https://api.github.com/users/ashcoding/following{/other_user}","gists_url":"https://api.github.com/users/ashcoding/gists{/gist_id}","starred_url":"https://api.github.com/users/ashcoding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashcoding/subscriptions","organizations_url":"https://api.github.com/users/ashcoding/orgs","repos_url":"https://api.github.com/users/ashcoding/repos","events_url":"https://api.github.com/users/ashcoding/events{/privacy}","received_events_url":"https://api.github.com/users/ashcoding/received_events","type":"User","site_admin":false},"assignees":[{"login":"ashcoding","id":9311952,"avatar_url":"https://avatars.githubusercontent.com/u/9311952?v=3","gravatar_id":"","url":"https://api.github.com/users/ashcoding","html_url":"https://github.com/ashcoding","followers_url":"https://api.github.com/users/ashcoding/followers","following_url":"https://api.github.com/users/ashcoding/following{/other_user}","gists_url":"https://api.github.com/users/ashcoding/gists{/gist_id}","starred_url":"https://api.github.com/users/ashcoding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashcoding/subscriptions","organizations_url":"https://api.github.com/users/ashcoding/orgs","repos_url":"https://api.github.com/users/ashcoding/repos","events_url":"https://api.github.com/users/ashcoding/events{/privacy}","received_events_url":"https://api.github.com/users/ashcoding/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/appcelerator/titanium_mobile/milestones/3","html_url":"https://github.com/appcelerator/titanium_mobile/milestones/6.1.0","labels_url":"https://api.github.com/repos/appcelerator/titanium_mobile/milestones/3/labels","id":1907490,"number":3,"title":"6.1.0","description":null,"creator":{"login":"hansemannn","id":10667698,"avatar_url":"https://avatars.githubusercontent.com/u/10667698?v=3","gravatar_id":"","url":"https://api.github.com/users/hansemannn","html_url":"https://github.com/hansemannn","followers_url":"https://api.github.com/users/hansemannn/followers","following_url":"https://api.github.com/users/hansemannn/following{/other_user}","gists_url":"https://api.github.com/users/hansemannn/gists{/gist_id}","starred_url":"https://api.github.com/users/hansemannn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hansemannn/subscriptions","organizations_url":"https://api.github.com/users/hansemannn/orgs","repos_url":"https://api.github.com/users/hansemannn/repos","events_url":"https://api.github.com/users/hansemannn/events{/privacy}","received_events_url":"https://api.github.com/users/hansemannn/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":1,"state":"open","created_at":"2016-07-27T15:53:48Z","updated_at":"2016-08-17T20:47:46Z","due_on":null,"closed_at":null},"comments":17,"created_at":"2016-08-15T19:52:47Z","updated_at":"2016-08-29T08:21:10Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/appcelerator/titanium_mobile/pulls/8230","html_url":"https://github.com/appcelerator/titanium_mobile/pull/8230","diff_url":"https://github.com/appcelerator/titanium_mobile/pull/8230.diff","patch_url":"https://github.com/appcelerator/titanium_mobile/pull/8230.patch"},"body":"**JIRA:** https://jira.appcelerator.org/browse/TIMOB-17467\r\n\r\n**Optional Description:**\r\n\r\n```\r\nvar win = Ti.UI.createWindow();\r\nvar webView = Ti.UI.createWebView({\r\n    requestHeaders: {\r\n        \"User-Foo\": \"FooBar\",\r\n        \"foo\": \"bar\",\r\n        \"other\": \"string\"\r\n    },\r\n    url: \"https://httpbin.org/headers\"\r\n});\r\nvar btn = Ti.UI.createButton({\r\n    title: \"Reload\",\r\n    bottom: 50\r\n});\r\n\r\nbtn.addEventListener(\"click\", function() {\r\n    webView.reload();\r\n});\r\n\r\nvar btnChange = Ti.UI.createButton({\r\n    title: \"Change Header\",\r\n    bottom: 0\r\n});\r\n\r\nbtnChange.addEventListener(\"click\", function() {\r\n    var date = new Date().getTime();\r\n    webView.setRequestHeaders({\r\n        \"User-Foo\": \"FooBar_\" + date,\r\n        \"foo\": \"bar_\" + date,\r\n        \"other\": \"string_\" + date\r\n    });\r\n});\r\n\r\nwin.add(webView);\r\nwin.add(btnChange);\r\nwin.add(btn);\r\nwin.open();\r\n```"},"comment":{"url":"https://api.github.com/repos/appcelerator/titanium_mobile/issues/comments/243061781","html_url":"https://github.com/appcelerator/titanium_mobile/pull/8230#issuecomment-243061781","issue_url":"https://api.github.com/repos/appcelerator/titanium_mobile/issues/8230","id":243061781,"user":{"login":"ashcoding","id":9311952,"avatar_url":"https://avatars.githubusercontent.com/u/9311952?v=3","gravatar_id":"","url":"https://api.github.com/users/ashcoding","html_url":"https://github.com/ashcoding","followers_url":"https://api.github.com/users/ashcoding/followers","following_url":"https://api.github.com/users/ashcoding/following{/other_user}","gists_url":"https://api.github.com/users/ashcoding/gists{/gist_id}","starred_url":"https://api.github.com/users/ashcoding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashcoding/subscriptions","organizations_url":"https://api.github.com/users/ashcoding/orgs","repos_url":"https://api.github.com/users/ashcoding/repos","events_url":"https://api.github.com/users/ashcoding/events{/privacy}","received_events_url":"https://api.github.com/users/ashcoding/received_events","type":"User","site_admin":false},"created_at":"2016-08-29T08:21:10Z","updated_at":"2016-08-29T08:21:10Z","body":"Code functionally tested and reviewed.\r\nLGTM.\r\n**Approved**"}}
{"actor":{"display_login":"ashcoding"}}