{"action":"created","issue":{"url":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/issues/11","labels_url":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/issues/11/comments","events_url":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/issues/11/events","html_url":"https://github.com/camunda/camunda-bpm-sdk-js/pull/11","id":117932312,"number":11,"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},"labels":[],"state":"open","locked":false,"assignee":{"login":"SebastianStamm","id":8982136,"avatar_url":"https://avatars.githubusercontent.com/u/8982136?v=3","gravatar_id":"","url":"https://api.github.com/users/SebastianStamm","html_url":"https://github.com/SebastianStamm","followers_url":"https://api.github.com/users/SebastianStamm/followers","following_url":"https://api.github.com/users/SebastianStamm/following{/other_user}","gists_url":"https://api.github.com/users/SebastianStamm/gists{/gist_id}","starred_url":"https://api.github.com/users/SebastianStamm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SebastianStamm/subscriptions","organizations_url":"https://api.github.com/users/SebastianStamm/orgs","repos_url":"https://api.github.com/users/SebastianStamm/repos","events_url":"https://api.github.com/users/SebastianStamm/events{/privacy}","received_events_url":"https://api.github.com/users/SebastianStamm/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-11-19T23:25:35Z","updated_at":"2015-11-20T12:57:11Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/pulls/11","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"},"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```"},"comment":{"url":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/issues/comments/158392056","html_url":"https://github.com/camunda/camunda-bpm-sdk-js/pull/11#issuecomment-158392056","issue_url":"https://api.github.com/repos/camunda/camunda-bpm-sdk-js/issues/11","id":158392056,"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},"created_at":"2015-11-20T12:57:11Z","updated_at":"2015-11-20T12:57:11Z","body":"I agree that tests are needed. Unfortunately the current mocking strategy for tests makes it impossible to test anything and HtpClient"}}