{"action":"created","issue":{"url":"https://api.github.com/repos/machinezone/mzbench/issues/39","repository_url":"https://api.github.com/repos/machinezone/mzbench","labels_url":"https://api.github.com/repos/machinezone/mzbench/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/machinezone/mzbench/issues/39/comments","events_url":"https://api.github.com/repos/machinezone/mzbench/issues/39/events","html_url":"https://github.com/machinezone/mzbench/issues/39","id":131624132,"number":39,"title":"http worker: Add Support for Request Options","user":{"login":"moigagoo","id":1045340,"avatar_url":"https://avatars.githubusercontent.com/u/1045340?v=3","gravatar_id":"","url":"https://api.github.com/users/moigagoo","html_url":"https://github.com/moigagoo","followers_url":"https://api.github.com/users/moigagoo/followers","following_url":"https://api.github.com/users/moigagoo/following{/other_user}","gists_url":"https://api.github.com/users/moigagoo/gists{/gist_id}","starred_url":"https://api.github.com/users/moigagoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moigagoo/subscriptions","organizations_url":"https://api.github.com/users/moigagoo/orgs","repos_url":"https://api.github.com/users/moigagoo/repos","events_url":"https://api.github.com/users/moigagoo/events{/privacy}","received_events_url":"https://api.github.com/users/moigagoo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-05T11:50:41Z","updated_at":"2016-03-15T03:57:47Z","closed_at":null,"body":"Currently, there's no way to do basic auth, which is sad.\r\n\r\nSince mzbench uses hackney, and hackney supports it via `Options`, it'd be great to be able to pass options to hackney, e.g. with a `set_options` function."},"comment":{"url":"https://api.github.com/repos/machinezone/mzbench/issues/comments/196642148","html_url":"https://github.com/machinezone/mzbench/issues/39#issuecomment-196642148","issue_url":"https://api.github.com/repos/machinezone/mzbench/issues/39","id":196642148,"user":{"login":"parsifal-47","id":4032256,"avatar_url":"https://avatars.githubusercontent.com/u/4032256?v=3","gravatar_id":"","url":"https://api.github.com/users/parsifal-47","html_url":"https://github.com/parsifal-47","followers_url":"https://api.github.com/users/parsifal-47/followers","following_url":"https://api.github.com/users/parsifal-47/following{/other_user}","gists_url":"https://api.github.com/users/parsifal-47/gists{/gist_id}","starred_url":"https://api.github.com/users/parsifal-47/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parsifal-47/subscriptions","organizations_url":"https://api.github.com/users/parsifal-47/orgs","repos_url":"https://api.github.com/users/parsifal-47/repos","events_url":"https://api.github.com/users/parsifal-47/events{/privacy}","received_events_url":"https://api.github.com/users/parsifal-47/received_events","type":"User","site_admin":false},"created_at":"2016-03-15T03:57:47Z","updated_at":"2016-03-15T03:57:47Z","body":"The problem is tuples, you couldn't have tuples in your code because MZBench is trying to execute them as functions, to fix this, you need to use \"tuple\" function \"t\", for example:\r\n\r\n`{set_options, [{t, basic_auth, {t, \"admin\", \"password\"}}]},`"}}