{"action":"created","issue":{"url":"https://api.github.com/repos/elazarl/goproxy/issues/141","labels_url":"https://api.github.com/repos/elazarl/goproxy/issues/141/labels{/name}","comments_url":"https://api.github.com/repos/elazarl/goproxy/issues/141/comments","events_url":"https://api.github.com/repos/elazarl/goproxy/issues/141/events","html_url":"https://github.com/elazarl/goproxy/pull/141","id":127363298,"number":141,"title":"Added CookieMatches for Cookie matching on requests","user":{"login":"BBerastegui","id":3830238,"avatar_url":"https://avatars.githubusercontent.com/u/3830238?v=3","gravatar_id":"","url":"https://api.github.com/users/BBerastegui","html_url":"https://github.com/BBerastegui","followers_url":"https://api.github.com/users/BBerastegui/followers","following_url":"https://api.github.com/users/BBerastegui/following{/other_user}","gists_url":"https://api.github.com/users/BBerastegui/gists{/gist_id}","starred_url":"https://api.github.com/users/BBerastegui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BBerastegui/subscriptions","organizations_url":"https://api.github.com/users/BBerastegui/orgs","repos_url":"https://api.github.com/users/BBerastegui/repos","events_url":"https://api.github.com/users/BBerastegui/events{/privacy}","received_events_url":"https://api.github.com/users/BBerastegui/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-19T04:25:58Z","updated_at":"2016-01-19T08:30:12Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/elazarl/goproxy/pulls/141","html_url":"https://github.com/elazarl/goproxy/pull/141","diff_url":"https://github.com/elazarl/goproxy/pull/141.diff","patch_url":"https://github.com/elazarl/goproxy/pull/141.patch"},"body":"With CookieMatches you will be able to trigger any behaviour if you find regexp matches against some particular cookie pattern."},"comment":{"url":"https://api.github.com/repos/elazarl/goproxy/issues/comments/172774566","html_url":"https://github.com/elazarl/goproxy/pull/141#issuecomment-172774566","issue_url":"https://api.github.com/repos/elazarl/goproxy/issues/141","id":172774566,"user":{"login":"elazarl","id":260258,"avatar_url":"https://avatars.githubusercontent.com/u/260258?v=3","gravatar_id":"","url":"https://api.github.com/users/elazarl","html_url":"https://github.com/elazarl","followers_url":"https://api.github.com/users/elazarl/followers","following_url":"https://api.github.com/users/elazarl/following{/other_user}","gists_url":"https://api.github.com/users/elazarl/gists{/gist_id}","starred_url":"https://api.github.com/users/elazarl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elazarl/subscriptions","organizations_url":"https://api.github.com/users/elazarl/orgs","repos_url":"https://api.github.com/users/elazarl/repos","events_url":"https://api.github.com/users/elazarl/events{/privacy}","received_events_url":"https://api.github.com/users/elazarl/received_events","type":"User","site_admin":false},"created_at":"2016-01-19T08:30:12Z","updated_at":"2016-01-19T08:30:12Z","body":"Didn't you know in advance which key would the cookie contain?\n\nOn Tue, Jan 19, 2016 at 10:29 AM, Borja Berastegui <notifications@github.com\n> wrote:\n\n> Hi !\n>\n> In my case, I was trying to find a regexp matching cookie being sent in\n> the request and then modifying/deleting/triggering whatever behaviour we\n> wanted.\n>\n> That is why I decided to add the same functionality as:\n>\n> func ReqHostMatches(regexps ...*regexp.Regexp) ReqConditionFunc\n>\n> We can add also something more strict as you propose. Something like\n> \"CookieIs\" as in the host-related function, but based on the cookie key\n> and/or value:\n>\n> func ReqHostIs(hosts ...string) ReqConditionFunc\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/elazarl/goproxy/pull/141#issuecomment-172774392>.\n>\n"}}