{"action":"created","comment":{"url":"https://api.github.com/repos/cloudant/mango/pulls/comments/37423175","id":37423175,"diff_hunk":"@@ -0,0 +1,24 @@\n+% Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\n+% use this file except in compliance with the License.  You may obtain a copy of\n+% the License at\n+%\n+%   http://www.apache.org/licenses/LICENSE-2.0\n+%\n+% Unless required by applicable law or agreed to in writing, software\n+% distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n+% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the\n+% License for the specific language governing permissions and limitations under\n+% the License.\n+\n+-module(mango_httpd_handlers).\n+\n+-export([url_handler/1, db_handler/1, design_handler/1]).\n+\n+url_handler(_) -> no_match.\n+\n+db_handler(<<\"_index\">>)        -> fun mango_httpd:handle_req/2;\n+db_handler(<<\"_explain\">>)      -> fun mango_httpd:handle_req/2;\n+db_handler(<<\"_find\">>)         -> fun mango_httpd:handle_req/2;","path":"src/mango_httpd_handlers.erl","position":21,"original_position":21,"commit_id":"a96e42ab10cbbcd6f67275c39a48ea6effebe04b","original_commit_id":"a96e42ab10cbbcd6f67275c39a48ea6effebe04b","user":{"login":"eiri","id":70542,"avatar_url":"https://avatars.githubusercontent.com/u/70542?v=3","gravatar_id":"","url":"https://api.github.com/users/eiri","html_url":"https://github.com/eiri","followers_url":"https://api.github.com/users/eiri/followers","following_url":"https://api.github.com/users/eiri/following{/other_user}","gists_url":"https://api.github.com/users/eiri/gists{/gist_id}","starred_url":"https://api.github.com/users/eiri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eiri/subscriptions","organizations_url":"https://api.github.com/users/eiri/orgs","repos_url":"https://api.github.com/users/eiri/repos","events_url":"https://api.github.com/users/eiri/events{/privacy}","received_events_url":"https://api.github.com/users/eiri/received_events","type":"User","site_admin":false},"body":"Not a complain, just curious, what with the spacing here? Is it a convention for the handlers' definition?","created_at":"2015-08-19T14:49:07Z","updated_at":"2015-08-19T14:49:07Z","html_url":"https://github.com/cloudant/mango/pull/43#discussion_r37423175","pull_request_url":"https://api.github.com/repos/cloudant/mango/pulls/43","_links":{"self":{"href":"https://api.github.com/repos/cloudant/mango/pulls/comments/37423175"},"html":{"href":"https://github.com/cloudant/mango/pull/43#discussion_r37423175"},"pull_request":{"href":"https://api.github.com/repos/cloudant/mango/pulls/43"}}},"pull_request":{"url":"https://api.github.com/repos/cloudant/mango/pulls/43","id":42821599,"html_url":"https://github.com/cloudant/mango/pull/43","diff_url":"https://github.com/cloudant/mango/pull/43.diff","patch_url":"https://github.com/cloudant/mango/pull/43.patch","issue_url":"https://api.github.com/repos/cloudant/mango/issues/43","number":43,"state":"open","locked":false,"title":"Couch epi","user":{"login":"iilyak","id":9804420,"avatar_url":"https://avatars.githubusercontent.com/u/9804420?v=3","gravatar_id":"","url":"https://api.github.com/users/iilyak","html_url":"https://github.com/iilyak","followers_url":"https://api.github.com/users/iilyak/followers","following_url":"https://api.github.com/users/iilyak/following{/other_user}","gists_url":"https://api.github.com/users/iilyak/gists{/gist_id}","starred_url":"https://api.github.com/users/iilyak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iilyak/subscriptions","organizations_url":"https://api.github.com/users/iilyak/orgs","repos_url":"https://api.github.com/users/iilyak/repos","events_url":"https://api.github.com/users/iilyak/events{/privacy}","received_events_url":"https://api.github.com/users/iilyak/received_events","type":"User","site_admin":false},"body":"This PR is exact copy of PR merged in ASF land","created_at":"2015-08-19T14:34:38Z","updated_at":"2015-08-19T14:49:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0c9c4320b1a62c8c6b5561249f06e89f3838820a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cloudant/mango/pulls/43/commits","review_comments_url":"https://api.github.com/repos/cloudant/mango/pulls/43/comments","review_comment_url":"https://api.github.com/repos/cloudant/mango/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cloudant/mango/issues/43/comments","statuses_url":"https://api.github.com/repos/cloudant/mango/statuses/a96e42ab10cbbcd6f67275c39a48ea6effebe04b","head":{"label":"cloudant:couch_epi","ref":"couch_epi","sha":"a96e42ab10cbbcd6f67275c39a48ea6effebe04b","user":{"login":"cloudant","id":44642,"avatar_url":"https://avatars.githubusercontent.com/u/44642?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudant","html_url":"https://github.com/cloudant","followers_url":"https://api.github.com/users/cloudant/followers","following_url":"https://api.github.com/users/cloudant/following{/other_user}","gists_url":"https://api.github.com/users/cloudant/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudant/subscriptions","organizations_url":"https://api.github.com/users/cloudant/orgs","repos_url":"https://api.github.com/users/cloudant/repos","events_url":"https://api.github.com/users/cloudant/events{/privacy}","received_events_url":"https://api.github.com/users/cloudant/received_events","type":"Organization","site_admin":false},"repo":{"id":17813248,"name":"mango","full_name":"cloudant/mango","owner":{"login":"cloudant","id":44642,"avatar_url":"https://avatars.githubusercontent.com/u/44642?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudant","html_url":"https://github.com/cloudant","followers_url":"https://api.github.com/users/cloudant/followers","following_url":"https://api.github.com/users/cloudant/following{/other_user}","gists_url":"https://api.github.com/users/cloudant/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudant/subscriptions","organizations_url":"https://api.github.com/users/cloudant/orgs","repos_url":"https://api.github.com/users/cloudant/repos","events_url":"https://api.github.com/users/cloudant/events{/privacy}","received_events_url":"https://api.github.com/users/cloudant/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cloudant/mango","description":"MongoDB API layer for CouchDB","fork":false,"url":"https://api.github.com/repos/cloudant/mango","forks_url":"https://api.github.com/repos/cloudant/mango/forks","keys_url":"https://api.github.com/repos/cloudant/mango/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloudant/mango/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloudant/mango/teams","hooks_url":"https://api.github.com/repos/cloudant/mango/hooks","issue_events_url":"https://api.github.com/repos/cloudant/mango/issues/events{/number}","events_url":"https://api.github.com/repos/cloudant/mango/events","assignees_url":"https://api.github.com/repos/cloudant/mango/assignees{/user}","branches_url":"https://api.github.com/repos/cloudant/mango/branches{/branch}","tags_url":"https://api.github.com/repos/cloudant/mango/tags","blobs_url":"https://api.github.com/repos/cloudant/mango/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloudant/mango/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloudant/mango/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloudant/mango/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloudant/mango/statuses/{sha}","languages_url":"https://api.github.com/repos/cloudant/mango/languages","stargazers_url":"https://api.github.com/repos/cloudant/mango/stargazers","contributors_url":"https://api.github.com/repos/cloudant/mango/contributors","subscribers_url":"https://api.github.com/repos/cloudant/mango/subscribers","subscription_url":"https://api.github.com/repos/cloudant/mango/subscription","commits_url":"https://api.github.com/repos/cloudant/mango/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloudant/mango/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloudant/mango/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloudant/mango/issues/comments{/number}","contents_url":"https://api.github.com/repos/cloudant/mango/contents/{+path}","compare_url":"https://api.github.com/repos/cloudant/mango/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloudant/mango/merges","archive_url":"https://api.github.com/repos/cloudant/mango/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloudant/mango/downloads","issues_url":"https://api.github.com/repos/cloudant/mango/issues{/number}","pulls_url":"https://api.github.com/repos/cloudant/mango/pulls{/number}","milestones_url":"https://api.github.com/repos/cloudant/mango/milestones{/number}","notifications_url":"https://api.github.com/repos/cloudant/mango/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloudant/mango/labels{/name}","releases_url":"https://api.github.com/repos/cloudant/mango/releases{/id}","created_at":"2014-03-17T00:52:17Z","updated_at":"2015-08-15T00:54:45Z","pushed_at":"2015-08-19T14:34:38Z","git_url":"git://github.com/cloudant/mango.git","ssh_url":"git@github.com:cloudant/mango.git","clone_url":"https://github.com/cloudant/mango.git","svn_url":"https://github.com/cloudant/mango","homepage":"","size":1552,"stargazers_count":77,"watchers_count":77,"language":"Erlang","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":4,"forks":3,"open_issues":4,"watchers":77,"default_branch":"master"}},"base":{"label":"cloudant:master","ref":"master","sha":"c6c99a4bd5b4572213df0fb3e162181b55dcbb03","user":{"login":"cloudant","id":44642,"avatar_url":"https://avatars.githubusercontent.com/u/44642?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudant","html_url":"https://github.com/cloudant","followers_url":"https://api.github.com/users/cloudant/followers","following_url":"https://api.github.com/users/cloudant/following{/other_user}","gists_url":"https://api.github.com/users/cloudant/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudant/subscriptions","organizations_url":"https://api.github.com/users/cloudant/orgs","repos_url":"https://api.github.com/users/cloudant/repos","events_url":"https://api.github.com/users/cloudant/events{/privacy}","received_events_url":"https://api.github.com/users/cloudant/received_events","type":"Organization","site_admin":false},"repo":{"id":17813248,"name":"mango","full_name":"cloudant/mango","owner":{"login":"cloudant","id":44642,"avatar_url":"https://avatars.githubusercontent.com/u/44642?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudant","html_url":"https://github.com/cloudant","followers_url":"https://api.github.com/users/cloudant/followers","following_url":"https://api.github.com/users/cloudant/following{/other_user}","gists_url":"https://api.github.com/users/cloudant/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudant/subscriptions","organizations_url":"https://api.github.com/users/cloudant/orgs","repos_url":"https://api.github.com/users/cloudant/repos","events_url":"https://api.github.com/users/cloudant/events{/privacy}","received_events_url":"https://api.github.com/users/cloudant/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cloudant/mango","description":"MongoDB API layer for CouchDB","fork":false,"url":"https://api.github.com/repos/cloudant/mango","forks_url":"https://api.github.com/repos/cloudant/mango/forks","keys_url":"https://api.github.com/repos/cloudant/mango/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloudant/mango/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloudant/mango/teams","hooks_url":"https://api.github.com/repos/cloudant/mango/hooks","issue_events_url":"https://api.github.com/repos/cloudant/mango/issues/events{/number}","events_url":"https://api.github.com/repos/cloudant/mango/events","assignees_url":"https://api.github.com/repos/cloudant/mango/assignees{/user}","branches_url":"https://api.github.com/repos/cloudant/mango/branches{/branch}","tags_url":"https://api.github.com/repos/cloudant/mango/tags","blobs_url":"https://api.github.com/repos/cloudant/mango/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloudant/mango/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloudant/mango/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloudant/mango/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloudant/mango/statuses/{sha}","languages_url":"https://api.github.com/repos/cloudant/mango/languages","stargazers_url":"https://api.github.com/repos/cloudant/mango/stargazers","contributors_url":"https://api.github.com/repos/cloudant/mango/contributors","subscribers_url":"https://api.github.com/repos/cloudant/mango/subscribers","subscription_url":"https://api.github.com/repos/cloudant/mango/subscription","commits_url":"https://api.github.com/repos/cloudant/mango/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloudant/mango/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloudant/mango/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloudant/mango/issues/comments{/number}","contents_url":"https://api.github.com/repos/cloudant/mango/contents/{+path}","compare_url":"https://api.github.com/repos/cloudant/mango/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloudant/mango/merges","archive_url":"https://api.github.com/repos/cloudant/mango/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloudant/mango/downloads","issues_url":"https://api.github.com/repos/cloudant/mango/issues{/number}","pulls_url":"https://api.github.com/repos/cloudant/mango/pulls{/number}","milestones_url":"https://api.github.com/repos/cloudant/mango/milestones{/number}","notifications_url":"https://api.github.com/repos/cloudant/mango/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloudant/mango/labels{/name}","releases_url":"https://api.github.com/repos/cloudant/mango/releases{/id}","created_at":"2014-03-17T00:52:17Z","updated_at":"2015-08-15T00:54:45Z","pushed_at":"2015-08-19T14:34:38Z","git_url":"git://github.com/cloudant/mango.git","ssh_url":"git@github.com:cloudant/mango.git","clone_url":"https://github.com/cloudant/mango.git","svn_url":"https://github.com/cloudant/mango","homepage":"","size":1552,"stargazers_count":77,"watchers_count":77,"language":"Erlang","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":4,"forks":3,"open_issues":4,"watchers":77,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cloudant/mango/pulls/43"},"html":{"href":"https://github.com/cloudant/mango/pull/43"},"issue":{"href":"https://api.github.com/repos/cloudant/mango/issues/43"},"comments":{"href":"https://api.github.com/repos/cloudant/mango/issues/43/comments"},"review_comments":{"href":"https://api.github.com/repos/cloudant/mango/pulls/43/comments"},"review_comment":{"href":"https://api.github.com/repos/cloudant/mango/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cloudant/mango/pulls/43/commits"},"statuses":{"href":"https://api.github.com/repos/cloudant/mango/statuses/a96e42ab10cbbcd6f67275c39a48ea6effebe04b"}}}}