{"action":"created","issue":{"url":"https://api.github.com/repos/olivere/elastic/issues/45","labels_url":"https://api.github.com/repos/olivere/elastic/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/olivere/elastic/issues/45/comments","events_url":"https://api.github.com/repos/olivere/elastic/issues/45/events","html_url":"https://github.com/olivere/elastic/issues/45","id":58557445,"number":45,"title":"Add Http Basic Auth support to requests","user":{"login":"foeken","id":13864,"avatar_url":"https://avatars.githubusercontent.com/u/13864?v=3","gravatar_id":"","url":"https://api.github.com/users/foeken","html_url":"https://github.com/foeken","followers_url":"https://api.github.com/users/foeken/followers","following_url":"https://api.github.com/users/foeken/following{/other_user}","gists_url":"https://api.github.com/users/foeken/gists{/gist_id}","starred_url":"https://api.github.com/users/foeken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foeken/subscriptions","organizations_url":"https://api.github.com/users/foeken/orgs","repos_url":"https://api.github.com/users/foeken/repos","events_url":"https://api.github.com/users/foeken/events{/privacy}","received_events_url":"https://api.github.com/users/foeken/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-23T08:40:30Z","updated_at":"2015-02-23T09:19:00Z","closed_at":null,"body":"We are using the newly released shield plugin for ES. This requires us to set the authentication header.\r\n\r\nI'd like to add that to the client, would you prefer this as a Request mutator just like `SetBodyJson` in https://github.com/olivere/elastic/blob/023773e3454ae460b40687dbf893821c371a033f/request.go or as a Client setting that is automatically added to each request. Since each request *might* require different authorisation a per request setting would not be the worst thing here...\r\n\r\nAny thoughts?"},"comment":{"url":"https://api.github.com/repos/olivere/elastic/issues/comments/75510327","html_url":"https://github.com/olivere/elastic/issues/45#issuecomment-75510327","issue_url":"https://api.github.com/repos/olivere/elastic/issues/45","id":75510327,"user":{"login":"foeken","id":13864,"avatar_url":"https://avatars.githubusercontent.com/u/13864?v=3","gravatar_id":"","url":"https://api.github.com/users/foeken","html_url":"https://github.com/foeken","followers_url":"https://api.github.com/users/foeken/followers","following_url":"https://api.github.com/users/foeken/following{/other_user}","gists_url":"https://api.github.com/users/foeken/gists{/gist_id}","starred_url":"https://api.github.com/users/foeken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foeken/subscriptions","organizations_url":"https://api.github.com/users/foeken/orgs","repos_url":"https://api.github.com/users/foeken/repos","events_url":"https://api.github.com/users/foeken/events{/privacy}","received_events_url":"https://api.github.com/users/foeken/received_events","type":"User","site_admin":false},"created_at":"2015-02-23T09:19:00Z","updated_at":"2015-02-23T09:19:00Z","body":"Thats interesting, I'll try that and get back to you!"}}