{"action":"created","issue":{"url":"https://api.github.com/repos/hibri/HttpMock/issues/90","repository_url":"https://api.github.com/repos/hibri/HttpMock","labels_url":"https://api.github.com/repos/hibri/HttpMock/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/hibri/HttpMock/issues/90/comments","events_url":"https://api.github.com/repos/hibri/HttpMock/issues/90/events","html_url":"https://github.com/hibri/HttpMock/issues/90","id":280424899,"number":90,"title":"Ignore Headers when Matching","user":{"login":"jonfinerty","id":1330072,"avatar_url":"https://avatars1.githubusercontent.com/u/1330072?v=4","gravatar_id":"","url":"https://api.github.com/users/jonfinerty","html_url":"https://github.com/jonfinerty","followers_url":"https://api.github.com/users/jonfinerty/followers","following_url":"https://api.github.com/users/jonfinerty/following{/other_user}","gists_url":"https://api.github.com/users/jonfinerty/gists{/gist_id}","starred_url":"https://api.github.com/users/jonfinerty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonfinerty/subscriptions","organizations_url":"https://api.github.com/users/jonfinerty/orgs","repos_url":"https://api.github.com/users/jonfinerty/repos","events_url":"https://api.github.com/users/jonfinerty/events{/privacy}","received_events_url":"https://api.github.com/users/jonfinerty/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-12-08T09:23:56Z","updated_at":"2017-12-08T14:32:20Z","closed_at":null,"author_association":"NONE","body":"Hi, I'm using this library to test my application and it works great, but it looks like in order to stub out an endpoint successfully I need to list all the headers that get sent in `WithHeaders`. Unfortunately our application sends out GUID correlation id's in the header so it's easy to predict their values. \r\n\r\nIs it (or would it be) possible to stub out an endpoint ignoring any given headers?"},"comment":{"url":"https://api.github.com/repos/hibri/HttpMock/issues/comments/350277024","html_url":"https://github.com/hibri/HttpMock/issues/90#issuecomment-350277024","issue_url":"https://api.github.com/repos/hibri/HttpMock/issues/90","id":350277024,"user":{"login":"hibri","id":122442,"avatar_url":"https://avatars3.githubusercontent.com/u/122442?v=4","gravatar_id":"","url":"https://api.github.com/users/hibri","html_url":"https://github.com/hibri","followers_url":"https://api.github.com/users/hibri/followers","following_url":"https://api.github.com/users/hibri/following{/other_user}","gists_url":"https://api.github.com/users/hibri/gists{/gist_id}","starred_url":"https://api.github.com/users/hibri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hibri/subscriptions","organizations_url":"https://api.github.com/users/hibri/orgs","repos_url":"https://api.github.com/users/hibri/repos","events_url":"https://api.github.com/users/hibri/events{/privacy}","received_events_url":"https://api.github.com/users/hibri/received_events","type":"User","site_admin":false},"created_at":"2017-12-08T14:32:20Z","updated_at":"2017-12-08T14:32:20Z","author_association":"OWNER","body":"Hi @jonfinerty\r\nThe header match logic should return at the first match, does not need all headers.\r\nhttps://github.com/hibri/HttpMock/blob/master/src/HttpMock/HeaderMatch.cs#L8\r\n \r\nAn approach would be to override the header matching logic to take a lambda, so you can inject your own custom logic. \r\nSomething like https://github.com/hibri/HttpMock/blob/master/src/HttpMock.Integration.Tests/StubConstraintsTests.cs#L27\r\n\r\nIt could be \r\n```\r\n.WithHeaders ( headers => headers.Contains(xxx))\r\n```"}}
{"actor":{"display_login":"hibri"}}