{"action":"opened","number":9,"pull_request":{"url":"https://api.github.com/repos/PuerkitoBio/fetchbot/pulls/9","id":38011742,"html_url":"https://github.com/PuerkitoBio/fetchbot/pull/9","diff_url":"https://github.com/PuerkitoBio/fetchbot/pull/9.diff","patch_url":"https://github.com/PuerkitoBio/fetchbot/pull/9.patch","issue_url":"https://api.github.com/repos/PuerkitoBio/fetchbot/issues/9","number":9,"state":"open","locked":false,"title":"Added Scheme as a ResponseMatcher for the fetchbot mux","user":{"login":"buro9","id":72949,"avatar_url":"https://avatars.githubusercontent.com/u/72949?v=3","gravatar_id":"","url":"https://api.github.com/users/buro9","html_url":"https://github.com/buro9","followers_url":"https://api.github.com/users/buro9/followers","following_url":"https://api.github.com/users/buro9/following{/other_user}","gists_url":"https://api.github.com/users/buro9/gists{/gist_id}","starred_url":"https://api.github.com/users/buro9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buro9/subscriptions","organizations_url":"https://api.github.com/users/buro9/orgs","repos_url":"https://api.github.com/users/buro9/repos","events_url":"https://api.github.com/users/buro9/events{/privacy}","received_events_url":"https://api.github.com/users/buro9/received_events","type":"User","site_admin":false},"body":"I need to crawl sites on both http and https, where there is more than a slim chance that links on http stay on http and links on https stay on https.\r\n\r\nI've added Scheme to the mux ResponseMatcher so that it is possible to seed 2 crawls, one on http and one on https... and these will stay on the scheme as well as the host.\r\n\r\nAn example usage may be:\r\n\r\n```go\r\n\tmux.Response().Method(\"GET\").Scheme(u.Scheme).ContentType(\r\n\t\t\"text/html\").Handler(fetchbot.HandlerFunc(getHandler))\r\n```\r\n\r\nThis has no breaking changes or anything complex, it just adds Scheme to the ResponseMatcher stuff.","created_at":"2015-06-18T14:22:17Z","updated_at":"2015-06-18T14:22:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/PuerkitoBio/fetchbot/pulls/9/commits","review_comments_url":"https://api.github.com/repos/PuerkitoBio/fetchbot/pulls/9/comments","review_comment_url":"https://api.github.com/repos/PuerkitoBio/fetchbot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PuerkitoBio/fetchbot/issues/9/comments","statuses_url":"https://api.github.com/repos/PuerkitoBio/fetchbot/statuses/19af23495e40c54963299044ef751ec601b06bdf","head":{"label":"buro9:master","ref":"master","sha":"19af23495e40c54963299044ef751ec601b06bdf","user":{"login":"buro9","id":72949,"avatar_url":"https://avatars.githubusercontent.com/u/72949?v=3","gravatar_id":"","url":"https://api.github.com/users/buro9","html_url":"https://github.com/buro9","followers_url":"https://api.github.com/users/buro9/followers","following_url":"https://api.github.com/users/buro9/following{/other_user}","gists_url":"https://api.github.com/users/buro9/gists{/gist_id}","starred_url":"https://api.github.com/users/buro9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buro9/subscriptions","organizations_url":"https://api.github.com/users/buro9/orgs","repos_url":"https://api.github.com/users/buro9/repos","events_url":"https://api.github.com/users/buro9/events{/privacy}","received_events_url":"https://api.github.com/users/buro9/received_events","type":"User","site_admin":false},"repo":{"id":37662434,"name":"fetchbot","full_name":"buro9/fetchbot","owner":{"login":"buro9","id":72949,"avatar_url":"https://avatars.githubusercontent.com/u/72949?v=3","gravatar_id":"","url":"https://api.github.com/users/buro9","html_url":"https://github.com/buro9","followers_url":"https://api.github.com/users/buro9/followers","following_url":"https://api.github.com/users/buro9/following{/other_user}","gists_url":"https://api.github.com/users/buro9/gists{/gist_id}","starred_url":"https://api.github.com/users/buro9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buro9/subscriptions","organizations_url":"https://api.github.com/users/buro9/orgs","repos_url":"https://api.github.com/users/buro9/repos","events_url":"https://api.github.com/users/buro9/events{/privacy}","received_events_url":"https://api.github.com/users/buro9/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/buro9/fetchbot","description":"A simple and flexible web crawler that follows the robots.txt policies and crawl delays.","fork":true,"url":"https://api.github.com/repos/buro9/fetchbot","forks_url":"https://api.github.com/repos/buro9/fetchbot/forks","keys_url":"https://api.github.com/repos/buro9/fetchbot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/buro9/fetchbot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/buro9/fetchbot/teams","hooks_url":"https://api.github.com/repos/buro9/fetchbot/hooks","issue_events_url":"https://api.github.com/repos/buro9/fetchbot/issues/events{/number}","events_url":"https://api.github.com/repos/buro9/fetchbot/events","assignees_url":"https://api.github.com/repos/buro9/fetchbot/assignees{/user}","branches_url":"https://api.github.com/repos/buro9/fetchbot/branches{/branch}","tags_url":"https://api.github.com/repos/buro9/fetchbot/tags","blobs_url":"https://api.github.com/repos/buro9/fetchbot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/buro9/fetchbot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/buro9/fetchbot/git/refs{/sha}","trees_url":"https://api.github.com/repos/buro9/fetchbot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/buro9/fetchbot/statuses/{sha}","languages_url":"https://api.github.com/repos/buro9/fetchbot/languages","stargazers_url":"https://api.github.com/repos/buro9/fetchbot/stargazers","contributors_url":"https://api.github.com/repos/buro9/fetchbot/contributors","subscribers_url":"https://api.github.com/repos/buro9/fetchbot/subscribers","subscription_url":"https://api.github.com/repos/buro9/fetchbot/subscription","commits_url":"https://api.github.com/repos/buro9/fetchbot/commits{/sha}","git_commits_url":"https://api.github.com/repos/buro9/fetchbot/git/commits{/sha}","comments_url":"https://api.github.com/repos/buro9/fetchbot/comments{/number}","issue_comment_url":"https://api.github.com/repos/buro9/fetchbot/issues/comments{/number}","contents_url":"https://api.github.com/repos/buro9/fetchbot/contents/{+path}","compare_url":"https://api.github.com/repos/buro9/fetchbot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/buro9/fetchbot/merges","archive_url":"https://api.github.com/repos/buro9/fetchbot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/buro9/fetchbot/downloads","issues_url":"https://api.github.com/repos/buro9/fetchbot/issues{/number}","pulls_url":"https://api.github.com/repos/buro9/fetchbot/pulls{/number}","milestones_url":"https://api.github.com/repos/buro9/fetchbot/milestones{/number}","notifications_url":"https://api.github.com/repos/buro9/fetchbot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/buro9/fetchbot/labels{/name}","releases_url":"https://api.github.com/repos/buro9/fetchbot/releases{/id}","created_at":"2015-06-18T13:54:47Z","updated_at":"2015-06-18T13:54:48Z","pushed_at":"2015-06-18T14:19:19Z","git_url":"git://github.com/buro9/fetchbot.git","ssh_url":"git@github.com:buro9/fetchbot.git","clone_url":"https://github.com/buro9/fetchbot.git","svn_url":"https://github.com/buro9/fetchbot","homepage":null,"size":2287,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"PuerkitoBio:master","ref":"master","sha":"00d006040616434957b63debb60c554cfee2b1f7","user":{"login":"PuerkitoBio","id":692384,"avatar_url":"https://avatars.githubusercontent.com/u/692384?v=3","gravatar_id":"","url":"https://api.github.com/users/PuerkitoBio","html_url":"https://github.com/PuerkitoBio","followers_url":"https://api.github.com/users/PuerkitoBio/followers","following_url":"https://api.github.com/users/PuerkitoBio/following{/other_user}","gists_url":"https://api.github.com/users/PuerkitoBio/gists{/gist_id}","starred_url":"https://api.github.com/users/PuerkitoBio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PuerkitoBio/subscriptions","organizations_url":"https://api.github.com/users/PuerkitoBio/orgs","repos_url":"https://api.github.com/users/PuerkitoBio/repos","events_url":"https://api.github.com/users/PuerkitoBio/events{/privacy}","received_events_url":"https://api.github.com/users/PuerkitoBio/received_events","type":"User","site_admin":false},"repo":{"id":15673762,"name":"fetchbot","full_name":"PuerkitoBio/fetchbot","owner":{"login":"PuerkitoBio","id":692384,"avatar_url":"https://avatars.githubusercontent.com/u/692384?v=3","gravatar_id":"","url":"https://api.github.com/users/PuerkitoBio","html_url":"https://github.com/PuerkitoBio","followers_url":"https://api.github.com/users/PuerkitoBio/followers","following_url":"https://api.github.com/users/PuerkitoBio/following{/other_user}","gists_url":"https://api.github.com/users/PuerkitoBio/gists{/gist_id}","starred_url":"https://api.github.com/users/PuerkitoBio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PuerkitoBio/subscriptions","organizations_url":"https://api.github.com/users/PuerkitoBio/orgs","repos_url":"https://api.github.com/users/PuerkitoBio/repos","events_url":"https://api.github.com/users/PuerkitoBio/events{/privacy}","received_events_url":"https://api.github.com/users/PuerkitoBio/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/PuerkitoBio/fetchbot","description":"A simple and flexible web crawler that follows the robots.txt policies and crawl delays.","fork":false,"url":"https://api.github.com/repos/PuerkitoBio/fetchbot","forks_url":"https://api.github.com/repos/PuerkitoBio/fetchbot/forks","keys_url":"https://api.github.com/repos/PuerkitoBio/fetchbot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PuerkitoBio/fetchbot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PuerkitoBio/fetchbot/teams","hooks_url":"https://api.github.com/repos/PuerkitoBio/fetchbot/hooks","issue_events_url":"https://api.github.com/repos/PuerkitoBio/fetchbot/issues/events{/number}","events_url":"https://api.github.com/repos/PuerkitoBio/fetchbot/events","assignees_url":"https://api.github.com/repos/PuerkitoBio/fetchbot/assignees{/user}","branches_url":"https://api.github.com/repos/PuerkitoBio/fetchbot/branches{/branch}","tags_url":"https://api.github.com/repos/PuerkitoBio/fetchbot/tags","blobs_url":"https://api.github.com/repos/PuerkitoBio/fetchbot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PuerkitoBio/fetchbot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PuerkitoBio/fetchbot/git/refs{/sha}","trees_url":"https://api.github.com/repos/PuerkitoBio/fetchbot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PuerkitoBio/fetchbot/statuses/{sha}","languages_url":"https://api.github.com/repos/PuerkitoBio/fetchbot/languages","stargazers_url":"https://api.github.com/repos/PuerkitoBio/fetchbot/stargazers","contributors_url":"https://api.github.com/repos/PuerkitoBio/fetchbot/contributors","subscribers_url":"https://api.github.com/repos/PuerkitoBio/fetchbot/subscribers","subscription_url":"https://api.github.com/repos/PuerkitoBio/fetchbot/subscription","commits_url":"https://api.github.com/repos/PuerkitoBio/fetchbot/commits{/sha}","git_commits_url":"https://api.github.com/repos/PuerkitoBio/fetchbot/git/commits{/sha}","comments_url":"https://api.github.com/repos/PuerkitoBio/fetchbot/comments{/number}","issue_comment_url":"https://api.github.com/repos/PuerkitoBio/fetchbot/issues/comments{/number}","contents_url":"https://api.github.com/repos/PuerkitoBio/fetchbot/contents/{+path}","compare_url":"https://api.github.com/repos/PuerkitoBio/fetchbot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PuerkitoBio/fetchbot/merges","archive_url":"https://api.github.com/repos/PuerkitoBio/fetchbot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PuerkitoBio/fetchbot/downloads","issues_url":"https://api.github.com/repos/PuerkitoBio/fetchbot/issues{/number}","pulls_url":"https://api.github.com/repos/PuerkitoBio/fetchbot/pulls{/number}","milestones_url":"https://api.github.com/repos/PuerkitoBio/fetchbot/milestones{/number}","notifications_url":"https://api.github.com/repos/PuerkitoBio/fetchbot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PuerkitoBio/fetchbot/labels{/name}","releases_url":"https://api.github.com/repos/PuerkitoBio/fetchbot/releases{/id}","created_at":"2014-01-06T12:45:18Z","updated_at":"2015-06-16T17:27:55Z","pushed_at":"2015-06-18T14:22:17Z","git_url":"git://github.com/PuerkitoBio/fetchbot.git","ssh_url":"git@github.com:PuerkitoBio/fetchbot.git","clone_url":"https://github.com/PuerkitoBio/fetchbot.git","svn_url":"https://github.com/PuerkitoBio/fetchbot","homepage":null,"size":2287,"stargazers_count":258,"watchers_count":258,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":26,"mirror_url":null,"open_issues_count":2,"forks":26,"open_issues":2,"watchers":258,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PuerkitoBio/fetchbot/pulls/9"},"html":{"href":"https://github.com/PuerkitoBio/fetchbot/pull/9"},"issue":{"href":"https://api.github.com/repos/PuerkitoBio/fetchbot/issues/9"},"comments":{"href":"https://api.github.com/repos/PuerkitoBio/fetchbot/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/PuerkitoBio/fetchbot/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/PuerkitoBio/fetchbot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PuerkitoBio/fetchbot/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/PuerkitoBio/fetchbot/statuses/19af23495e40c54963299044ef751ec601b06bdf"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":21,"deletions":6,"changed_files":1}}