{"action":"opened","number":11,"pull_request":{"url":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/pulls/11","id":51297147,"html_url":"https://github.com/camunda/camunda-bpm-sdk-js/pull/11","diff_url":"https://github.com/camunda/camunda-bpm-sdk-js/pull/11.diff","patch_url":"https://github.com/camunda/camunda-bpm-sdk-js/pull/11.patch","issue_url":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/issues/11","number":11,"state":"open","locked":false,"title":"Feature: CAM-4069 I can set custom request headers using the HTTP-Client in JS SDK","user":{"login":"lightswitch05","id":598803,"avatar_url":"https://avatars.githubusercontent.com/u/598803?v=3","gravatar_id":"","url":"https://api.github.com/users/lightswitch05","html_url":"https://github.com/lightswitch05","followers_url":"https://api.github.com/users/lightswitch05/followers","following_url":"https://api.github.com/users/lightswitch05/following{/other_user}","gists_url":"https://api.github.com/users/lightswitch05/gists{/gist_id}","starred_url":"https://api.github.com/users/lightswitch05/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lightswitch05/subscriptions","organizations_url":"https://api.github.com/users/lightswitch05/orgs","repos_url":"https://api.github.com/users/lightswitch05/repos","events_url":"https://api.github.com/users/lightswitch05/events{/privacy}","received_events_url":"https://api.github.com/users/lightswitch05/received_events","type":"User","site_admin":false},"body":"I need custom headers to allow authentication through a gateway. I saw there was already an open ticket for this feature: [CAM-4069](https://app.camunda.com/jira/browse/CAM-4069)\r\n\r\nExample usage:\r\n\r\n```JavaScript\r\nvar sdkClient = new CamSDK.Client({\r\n    apiUri: 'http://example.com:8080/engine-rest',\r\n    mock: false,\r\n    headers: {'X-Requested-With': 'AngularJs'}\r\n});\r\n```","created_at":"2015-11-19T23:25:35Z","updated_at":"2015-11-19T23:25:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/pulls/11/commits","review_comments_url":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/pulls/11/comments","review_comment_url":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/issues/11/comments","statuses_url":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/statuses/0f5d30bd726c47d40fb29eb296afd92c13d86b7f","head":{"label":"lightswitch05:feature/CAM-4069-Custom-request-headers","ref":"feature/CAM-4069-Custom-request-headers","sha":"0f5d30bd726c47d40fb29eb296afd92c13d86b7f","user":{"login":"lightswitch05","id":598803,"avatar_url":"https://avatars.githubusercontent.com/u/598803?v=3","gravatar_id":"","url":"https://api.github.com/users/lightswitch05","html_url":"https://github.com/lightswitch05","followers_url":"https://api.github.com/users/lightswitch05/followers","following_url":"https://api.github.com/users/lightswitch05/following{/other_user}","gists_url":"https://api.github.com/users/lightswitch05/gists{/gist_id}","starred_url":"https://api.github.com/users/lightswitch05/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lightswitch05/subscriptions","organizations_url":"https://api.github.com/users/lightswitch05/orgs","repos_url":"https://api.github.com/users/lightswitch05/repos","events_url":"https://api.github.com/users/lightswitch05/events{/privacy}","received_events_url":"https://api.github.com/users/lightswitch05/received_events","type":"User","site_admin":false},"repo":{"id":42314813,"name":"camunda-bpm-sdk-js","full_name":"lightswitch05/camunda-bpm-sdk-js","owner":{"login":"lightswitch05","id":598803,"avatar_url":"https://avatars.githubusercontent.com/u/598803?v=3","gravatar_id":"","url":"https://api.github.com/users/lightswitch05","html_url":"https://github.com/lightswitch05","followers_url":"https://api.github.com/users/lightswitch05/followers","following_url":"https://api.github.com/users/lightswitch05/following{/other_user}","gists_url":"https://api.github.com/users/lightswitch05/gists{/gist_id}","starred_url":"https://api.github.com/users/lightswitch05/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lightswitch05/subscriptions","organizations_url":"https://api.github.com/users/lightswitch05/orgs","repos_url":"https://api.github.com/users/lightswitch05/repos","events_url":"https://api.github.com/users/lightswitch05/events{/privacy}","received_events_url":"https://api.github.com/users/lightswitch05/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lightswitch05/camunda-bpm-sdk-js","description":"Javascript client library for connecting to camunda BPM REST Api","fork":true,"url":"https://api.github.com/repos/lightswitch05/camunda-bpm-sdk-js","forks_url":"https://api.github.com/repos/lightswitch05/camunda-bpm-sdk-js/forks","keys_url":"https://api.github.com/repos/lightswitch05/camunda-bpm-sdk-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lightswitch05/camunda-bpm-sdk-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lightswitch05/camunda-bpm-sdk-js/teams","hooks_url":"https://api.github.com/repos/lightswitch05/camunda-bpm-sdk-js/hooks","issue_events_url":"https://api.github.com/repos/lightswitch05/camunda-bpm-sdk-js/issues/events{/number}","events_url":"https://api.github.com/repos/lightswitch05/camunda-bpm-sdk-js/events","assignees_url":"https://api.github.com/repos/lightswitch05/camunda-bpm-sdk-js/assignees{/user}","branches_url":"https://api.github.com/repos/lightswitch05/camunda-bpm-sdk-js/branches{/branch}","tags_url":"https://api.github.com/repos/lightswitch05/camunda-bpm-sdk-js/tags","blobs_url":"https://api.github.com/repos/lightswitch05/camunda-bpm-sdk-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lightswitch05/camunda-bpm-sdk-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lightswitch05/camunda-bpm-sdk-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/lightswitch05/camunda-bpm-sdk-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lightswitch05/camunda-bpm-sdk-js/statuses/{sha}","languages_url":"https://api.github.com/repos/lightswitch05/camunda-bpm-sdk-js/languages","stargazers_url":"https://api.github.com/repos/lightswitch05/camunda-bpm-sdk-js/stargazers","contributors_url":"https://api.github.com/repos/lightswitch05/camunda-bpm-sdk-js/contributors","subscribers_url":"https://api.github.com/repos/lightswitch05/camunda-bpm-sdk-js/subscribers","subscription_url":"https://api.github.com/repos/lightswitch05/camunda-bpm-sdk-js/subscription","commits_url":"https://api.github.com/repos/lightswitch05/camunda-bpm-sdk-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/lightswitch05/camunda-bpm-sdk-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/lightswitch05/camunda-bpm-sdk-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/lightswitch05/camunda-bpm-sdk-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/lightswitch05/camunda-bpm-sdk-js/contents/{+path}","compare_url":"https://api.github.com/repos/lightswitch05/camunda-bpm-sdk-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lightswitch05/camunda-bpm-sdk-js/merges","archive_url":"https://api.github.com/repos/lightswitch05/camunda-bpm-sdk-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lightswitch05/camunda-bpm-sdk-js/downloads","issues_url":"https://api.github.com/repos/lightswitch05/camunda-bpm-sdk-js/issues{/number}","pulls_url":"https://api.github.com/repos/lightswitch05/camunda-bpm-sdk-js/pulls{/number}","milestones_url":"https://api.github.com/repos/lightswitch05/camunda-bpm-sdk-js/milestones{/number}","notifications_url":"https://api.github.com/repos/lightswitch05/camunda-bpm-sdk-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lightswitch05/camunda-bpm-sdk-js/labels{/name}","releases_url":"https://api.github.com/repos/lightswitch05/camunda-bpm-sdk-js/releases{/id}","created_at":"2015-09-11T14:57:20Z","updated_at":"2015-09-11T14:57:20Z","pushed_at":"2015-11-19T23:19:15Z","git_url":"git://github.com/lightswitch05/camunda-bpm-sdk-js.git","ssh_url":"git@github.com:lightswitch05/camunda-bpm-sdk-js.git","clone_url":"https://github.com/lightswitch05/camunda-bpm-sdk-js.git","svn_url":"https://github.com/lightswitch05/camunda-bpm-sdk-js","homepage":"","size":549,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"camunda:master","ref":"master","sha":"b1c4be4948867a0a10cdead161bfd9250e49c4bb","user":{"login":"camunda","id":2443838,"avatar_url":"https://avatars.githubusercontent.com/u/2443838?v=3","gravatar_id":"","url":"https://api.github.com/users/camunda","html_url":"https://github.com/camunda","followers_url":"https://api.github.com/users/camunda/followers","following_url":"https://api.github.com/users/camunda/following{/other_user}","gists_url":"https://api.github.com/users/camunda/gists{/gist_id}","starred_url":"https://api.github.com/users/camunda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/camunda/subscriptions","organizations_url":"https://api.github.com/users/camunda/orgs","repos_url":"https://api.github.com/users/camunda/repos","events_url":"https://api.github.com/users/camunda/events{/privacy}","received_events_url":"https://api.github.com/users/camunda/received_events","type":"Organization","site_admin":false},"repo":{"id":20772299,"name":"camunda-bpm-sdk-js","full_name":"camunda/camunda-bpm-sdk-js","owner":{"login":"camunda","id":2443838,"avatar_url":"https://avatars.githubusercontent.com/u/2443838?v=3","gravatar_id":"","url":"https://api.github.com/users/camunda","html_url":"https://github.com/camunda","followers_url":"https://api.github.com/users/camunda/followers","following_url":"https://api.github.com/users/camunda/following{/other_user}","gists_url":"https://api.github.com/users/camunda/gists{/gist_id}","starred_url":"https://api.github.com/users/camunda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/camunda/subscriptions","organizations_url":"https://api.github.com/users/camunda/orgs","repos_url":"https://api.github.com/users/camunda/repos","events_url":"https://api.github.com/users/camunda/events{/privacy}","received_events_url":"https://api.github.com/users/camunda/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/camunda/camunda-bpm-sdk-js","description":"Javascript client library for connecting to camunda BPM REST Api","fork":false,"url":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js","forks_url":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/forks","keys_url":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/teams","hooks_url":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/hooks","issue_events_url":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/issues/events{/number}","events_url":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/events","assignees_url":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/assignees{/user}","branches_url":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/branches{/branch}","tags_url":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/tags","blobs_url":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/statuses/{sha}","languages_url":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/languages","stargazers_url":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/stargazers","contributors_url":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/contributors","subscribers_url":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/subscribers","subscription_url":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/subscription","commits_url":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/contents/{+path}","compare_url":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/merges","archive_url":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/downloads","issues_url":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/issues{/number}","pulls_url":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/pulls{/number}","milestones_url":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/milestones{/number}","notifications_url":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/labels{/name}","releases_url":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/releases{/id}","created_at":"2014-06-12T15:20:23Z","updated_at":"2015-10-01T18:07:51Z","pushed_at":"2015-11-17T21:33:14Z","git_url":"git://github.com/camunda/camunda-bpm-sdk-js.git","ssh_url":"git@github.com:camunda/camunda-bpm-sdk-js.git","clone_url":"https://github.com/camunda/camunda-bpm-sdk-js.git","svn_url":"https://github.com/camunda/camunda-bpm-sdk-js","homepage":"","size":1667,"stargazers_count":8,"watchers_count":8,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":3,"forks":11,"open_issues":3,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/pulls/11"},"html":{"href":"https://github.com/camunda/camunda-bpm-sdk-js/pull/11"},"issue":{"href":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/issues/11"},"comments":{"href":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/statuses/0f5d30bd726c47d40fb29eb296afd92c13d86b7f"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":21,"deletions":10,"changed_files":3}}