{"action":"created","issue":{"url":"https://api.github.com/repos/FloeDesignTechnologies/ansible-haproxy/issues/20","labels_url":"https://api.github.com/repos/FloeDesignTechnologies/ansible-haproxy/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/FloeDesignTechnologies/ansible-haproxy/issues/20/comments","events_url":"https://api.github.com/repos/FloeDesignTechnologies/ansible-haproxy/issues/20/events","html_url":"https://github.com/FloeDesignTechnologies/ansible-haproxy/pull/20","id":60360954,"number":20,"title":"Add http-request option to frontends","user":{"login":"pieterlexis","id":731232,"avatar_url":"https://avatars.githubusercontent.com/u/731232?v=3","gravatar_id":"","url":"https://api.github.com/users/pieterlexis","html_url":"https://github.com/pieterlexis","followers_url":"https://api.github.com/users/pieterlexis/followers","following_url":"https://api.github.com/users/pieterlexis/following{/other_user}","gists_url":"https://api.github.com/users/pieterlexis/gists{/gist_id}","starred_url":"https://api.github.com/users/pieterlexis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pieterlexis/subscriptions","organizations_url":"https://api.github.com/users/pieterlexis/orgs","repos_url":"https://api.github.com/users/pieterlexis/repos","events_url":"https://api.github.com/users/pieterlexis/events{/privacy}","received_events_url":"https://api.github.com/users/pieterlexis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-09T15:31:49Z","updated_at":"2015-03-28T18:47:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/FloeDesignTechnologies/ansible-haproxy/pulls/20","html_url":"https://github.com/FloeDesignTechnologies/ansible-haproxy/pull/20","diff_url":"https://github.com/FloeDesignTechnologies/ansible-haproxy/pull/20.diff","patch_url":"https://github.com/FloeDesignTechnologies/ansible-haproxy/pull/20.patch"},"body":"This allows the use of the ['http-request'](http://cbonte.github.io/haproxy-dconv/configuration-1.5.html#http-request) option for frontends, eg.:\r\n\r\n```\r\n---\r\nhaproxy_frontends:\r\n  - name: \"http-in\"\r\n    bind:\r\n      - \"{{ ansible_eth0.ipv4.address }}:80\"\r\n    default-backend: 'public-http'\r\n    acl:\r\n      - name: 'Users-auth-ok'\r\n        condition: 'http_auth(users)'\r\n    http_request:\r\n      - action: allow\r\n        condition: 'if Users-auth-ok'\r\n      - action: 'auth'\r\n        param: 'realm \"My secret server\"'\r\n        condition: 'if !Users-auth-ok'\r\n      - action: 'deny'\r\n```"},"comment":{"url":"https://api.github.com/repos/FloeDesignTechnologies/ansible-haproxy/issues/comments/87281894","html_url":"https://github.com/FloeDesignTechnologies/ansible-haproxy/pull/20#issuecomment-87281894","issue_url":"https://api.github.com/repos/FloeDesignTechnologies/ansible-haproxy/issues/20","id":87281894,"user":{"login":"PierrePaul","id":149291,"avatar_url":"https://avatars.githubusercontent.com/u/149291?v=3","gravatar_id":"","url":"https://api.github.com/users/PierrePaul","html_url":"https://github.com/PierrePaul","followers_url":"https://api.github.com/users/PierrePaul/followers","following_url":"https://api.github.com/users/PierrePaul/following{/other_user}","gists_url":"https://api.github.com/users/PierrePaul/gists{/gist_id}","starred_url":"https://api.github.com/users/PierrePaul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PierrePaul/subscriptions","organizations_url":"https://api.github.com/users/PierrePaul/orgs","repos_url":"https://api.github.com/users/PierrePaul/repos","events_url":"https://api.github.com/users/PierrePaul/events{/privacy}","received_events_url":"https://api.github.com/users/PierrePaul/received_events","type":"User","site_admin":false},"created_at":"2015-03-28T18:47:36Z","updated_at":"2015-03-28T18:47:36Z","body":"I never used http-request in the past. It seems to be a very handy feature.\r\nThanks your pull request :)"}}