{"action":"created","comment":{"url":"https://api.github.com/repos/Islandora-CLAW/chullo/pulls/comments/44284458","id":44284458,"diff_hunk":"@@ -85,6 +86,31 @@ public function getResource($uri = \"\",\n     }\n \n     /**\n+     * Gets a Fedora resoure's headers.\n+     *\n+     * @param string    $uri            Resource URI\n+     * @param string    $transaction    Transaction id\n+     *\n+     * @return array    Headers of a resource.\n+     */\n+    public function getResourceHeaders($uri = \"\",\n+                                       $transaction = \"\") {\n+\n+        // Ensure uri takes transaction into account.\n+        $uri = $this->prepareUri($uri, $transaction);\n+\n+        // Send the request.\n+        $response = $this->client->request(\n+            'HEAD',\n+            $uri\n+        );\n+\n+        $code = $response->getStatusCode();","path":"src/Chullo.php","position":40,"original_position":40,"commit_id":"2d5cd412e7efddf540c883830e1a4cd3f88aa831","original_commit_id":"2d5cd412e7efddf540c883830e1a4cd3f88aa831","user":{"login":"ruebot","id":218561,"avatar_url":"https://avatars.githubusercontent.com/u/218561?v=3","gravatar_id":"","url":"https://api.github.com/users/ruebot","html_url":"https://github.com/ruebot","followers_url":"https://api.github.com/users/ruebot/followers","following_url":"https://api.github.com/users/ruebot/following{/other_user}","gists_url":"https://api.github.com/users/ruebot/gists{/gist_id}","starred_url":"https://api.github.com/users/ruebot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruebot/subscriptions","organizations_url":"https://api.github.com/users/ruebot/orgs","repos_url":"https://api.github.com/users/ruebot/repos","events_url":"https://api.github.com/users/ruebot/events{/privacy}","received_events_url":"https://api.github.com/users/ruebot/received_events","type":"User","site_admin":false},"body":"It shall be!","created_at":"2015-11-09T15:08:44Z","updated_at":"2015-11-09T15:08:44Z","html_url":"https://github.com/Islandora-CLAW/chullo/pull/19#discussion_r44284458","pull_request_url":"https://api.github.com/repos/Islandora-CLAW/chullo/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/Islandora-CLAW/chullo/pulls/comments/44284458"},"html":{"href":"https://github.com/Islandora-CLAW/chullo/pull/19#discussion_r44284458"},"pull_request":{"href":"https://api.github.com/repos/Islandora-CLAW/chullo/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/Islandora-CLAW/chullo/pulls/19","id":50061770,"html_url":"https://github.com/Islandora-CLAW/chullo/pull/19","diff_url":"https://github.com/Islandora-CLAW/chullo/pull/19.diff","patch_url":"https://github.com/Islandora-CLAW/chullo/pull/19.patch","issue_url":"https://api.github.com/repos/Islandora-CLAW/chullo/issues/19","number":19,"state":"open","locked":false,"title":"Implement getResourceHeaders -- Address #7","user":{"login":"ruebot","id":218561,"avatar_url":"https://avatars.githubusercontent.com/u/218561?v=3","gravatar_id":"","url":"https://api.github.com/users/ruebot","html_url":"https://github.com/ruebot","followers_url":"https://api.github.com/users/ruebot/followers","following_url":"https://api.github.com/users/ruebot/following{/other_user}","gists_url":"https://api.github.com/users/ruebot/gists{/gist_id}","starred_url":"https://api.github.com/users/ruebot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruebot/subscriptions","organizations_url":"https://api.github.com/users/ruebot/orgs","repos_url":"https://api.github.com/users/ruebot/repos","events_url":"https://api.github.com/users/ruebot/events{/privacy}","received_events_url":"https://api.github.com/users/ruebot/received_events","type":"User","site_admin":false},"body":"Let's see if I did this right :smile: \r\n\r\nSee: #7 \r\n\r\n_tags_ @Islandora-CLAW/7-x-2-x-committers ","created_at":"2015-11-08T14:48:57Z","updated_at":"2015-11-09T15:08:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"30e90afa6f6ed9bf1b0c7c17ba85ee6803219db1","assignee":null,"milestone":{"url":"https://api.github.com/repos/Islandora-CLAW/chullo/milestones/1","html_url":"https://github.com/Islandora-CLAW/chullo/milestones/Community%20Sprint%20-%2001","labels_url":"https://api.github.com/repos/Islandora-CLAW/chullo/milestones/1/labels","id":1333384,"number":1,"title":"Community Sprint - 01","description":"Islandora 7.x-2.x Community Sprint 01\r\n\r\nNovember 2-14, 2015","creator":{"login":"ruebot","id":218561,"avatar_url":"https://avatars.githubusercontent.com/u/218561?v=3","gravatar_id":"","url":"https://api.github.com/users/ruebot","html_url":"https://github.com/ruebot","followers_url":"https://api.github.com/users/ruebot/followers","following_url":"https://api.github.com/users/ruebot/following{/other_user}","gists_url":"https://api.github.com/users/ruebot/gists{/gist_id}","starred_url":"https://api.github.com/users/ruebot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruebot/subscriptions","organizations_url":"https://api.github.com/users/ruebot/orgs","repos_url":"https://api.github.com/users/ruebot/repos","events_url":"https://api.github.com/users/ruebot/events{/privacy}","received_events_url":"https://api.github.com/users/ruebot/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":3,"state":"open","created_at":"2015-10-01T15:50:26Z","updated_at":"2015-11-08T19:37:00Z","due_on":"2015-11-14T05:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/Islandora-CLAW/chullo/pulls/19/commits","review_comments_url":"https://api.github.com/repos/Islandora-CLAW/chullo/pulls/19/comments","review_comment_url":"https://api.github.com/repos/Islandora-CLAW/chullo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Islandora-CLAW/chullo/issues/19/comments","statuses_url":"https://api.github.com/repos/Islandora-CLAW/chullo/statuses/2d5cd412e7efddf540c883830e1a4cd3f88aa831","head":{"label":"ruebot:issue-7","ref":"issue-7","sha":"2d5cd412e7efddf540c883830e1a4cd3f88aa831","user":{"login":"ruebot","id":218561,"avatar_url":"https://avatars.githubusercontent.com/u/218561?v=3","gravatar_id":"","url":"https://api.github.com/users/ruebot","html_url":"https://github.com/ruebot","followers_url":"https://api.github.com/users/ruebot/followers","following_url":"https://api.github.com/users/ruebot/following{/other_user}","gists_url":"https://api.github.com/users/ruebot/gists{/gist_id}","starred_url":"https://api.github.com/users/ruebot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruebot/subscriptions","organizations_url":"https://api.github.com/users/ruebot/orgs","repos_url":"https://api.github.com/users/ruebot/repos","events_url":"https://api.github.com/users/ruebot/events{/privacy}","received_events_url":"https://api.github.com/users/ruebot/received_events","type":"User","site_admin":false},"repo":{"id":43696390,"name":"chullo","full_name":"ruebot/chullo","owner":{"login":"ruebot","id":218561,"avatar_url":"https://avatars.githubusercontent.com/u/218561?v=3","gravatar_id":"","url":"https://api.github.com/users/ruebot","html_url":"https://github.com/ruebot","followers_url":"https://api.github.com/users/ruebot/followers","following_url":"https://api.github.com/users/ruebot/following{/other_user}","gists_url":"https://api.github.com/users/ruebot/gists{/gist_id}","starred_url":"https://api.github.com/users/ruebot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruebot/subscriptions","organizations_url":"https://api.github.com/users/ruebot/orgs","repos_url":"https://api.github.com/users/ruebot/repos","events_url":"https://api.github.com/users/ruebot/events{/privacy}","received_events_url":"https://api.github.com/users/ruebot/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ruebot/chullo","description":"","fork":true,"url":"https://api.github.com/repos/ruebot/chullo","forks_url":"https://api.github.com/repos/ruebot/chullo/forks","keys_url":"https://api.github.com/repos/ruebot/chullo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ruebot/chullo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ruebot/chullo/teams","hooks_url":"https://api.github.com/repos/ruebot/chullo/hooks","issue_events_url":"https://api.github.com/repos/ruebot/chullo/issues/events{/number}","events_url":"https://api.github.com/repos/ruebot/chullo/events","assignees_url":"https://api.github.com/repos/ruebot/chullo/assignees{/user}","branches_url":"https://api.github.com/repos/ruebot/chullo/branches{/branch}","tags_url":"https://api.github.com/repos/ruebot/chullo/tags","blobs_url":"https://api.github.com/repos/ruebot/chullo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ruebot/chullo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ruebot/chullo/git/refs{/sha}","trees_url":"https://api.github.com/repos/ruebot/chullo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ruebot/chullo/statuses/{sha}","languages_url":"https://api.github.com/repos/ruebot/chullo/languages","stargazers_url":"https://api.github.com/repos/ruebot/chullo/stargazers","contributors_url":"https://api.github.com/repos/ruebot/chullo/contributors","subscribers_url":"https://api.github.com/repos/ruebot/chullo/subscribers","subscription_url":"https://api.github.com/repos/ruebot/chullo/subscription","commits_url":"https://api.github.com/repos/ruebot/chullo/commits{/sha}","git_commits_url":"https://api.github.com/repos/ruebot/chullo/git/commits{/sha}","comments_url":"https://api.github.com/repos/ruebot/chullo/comments{/number}","issue_comment_url":"https://api.github.com/repos/ruebot/chullo/issues/comments{/number}","contents_url":"https://api.github.com/repos/ruebot/chullo/contents/{+path}","compare_url":"https://api.github.com/repos/ruebot/chullo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ruebot/chullo/merges","archive_url":"https://api.github.com/repos/ruebot/chullo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ruebot/chullo/downloads","issues_url":"https://api.github.com/repos/ruebot/chullo/issues{/number}","pulls_url":"https://api.github.com/repos/ruebot/chullo/pulls{/number}","milestones_url":"https://api.github.com/repos/ruebot/chullo/milestones{/number}","notifications_url":"https://api.github.com/repos/ruebot/chullo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ruebot/chullo/labels{/name}","releases_url":"https://api.github.com/repos/ruebot/chullo/releases{/id}","created_at":"2015-10-05T15:59:31Z","updated_at":"2015-10-05T15:59:32Z","pushed_at":"2015-11-09T14:54:04Z","git_url":"git://github.com/ruebot/chullo.git","ssh_url":"git@github.com:ruebot/chullo.git","clone_url":"https://github.com/ruebot/chullo.git","svn_url":"https://github.com/ruebot/chullo","homepage":null,"size":110,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"Islandora-CLAW:master","ref":"master","sha":"7e3da895218e681d81ec4cac2d14a7dafc47bbbd","user":{"login":"Islandora-CLAW","id":15603186,"avatar_url":"https://avatars.githubusercontent.com/u/15603186?v=3","gravatar_id":"","url":"https://api.github.com/users/Islandora-CLAW","html_url":"https://github.com/Islandora-CLAW","followers_url":"https://api.github.com/users/Islandora-CLAW/followers","following_url":"https://api.github.com/users/Islandora-CLAW/following{/other_user}","gists_url":"https://api.github.com/users/Islandora-CLAW/gists{/gist_id}","starred_url":"https://api.github.com/users/Islandora-CLAW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Islandora-CLAW/subscriptions","organizations_url":"https://api.github.com/users/Islandora-CLAW/orgs","repos_url":"https://api.github.com/users/Islandora-CLAW/repos","events_url":"https://api.github.com/users/Islandora-CLAW/events{/privacy}","received_events_url":"https://api.github.com/users/Islandora-CLAW/received_events","type":"Organization","site_admin":false},"repo":{"id":43455417,"name":"chullo","full_name":"Islandora-CLAW/chullo","owner":{"login":"Islandora-CLAW","id":15603186,"avatar_url":"https://avatars.githubusercontent.com/u/15603186?v=3","gravatar_id":"","url":"https://api.github.com/users/Islandora-CLAW","html_url":"https://github.com/Islandora-CLAW","followers_url":"https://api.github.com/users/Islandora-CLAW/followers","following_url":"https://api.github.com/users/Islandora-CLAW/following{/other_user}","gists_url":"https://api.github.com/users/Islandora-CLAW/gists{/gist_id}","starred_url":"https://api.github.com/users/Islandora-CLAW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Islandora-CLAW/subscriptions","organizations_url":"https://api.github.com/users/Islandora-CLAW/orgs","repos_url":"https://api.github.com/users/Islandora-CLAW/repos","events_url":"https://api.github.com/users/Islandora-CLAW/events{/privacy}","received_events_url":"https://api.github.com/users/Islandora-CLAW/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Islandora-CLAW/chullo","description":"","fork":false,"url":"https://api.github.com/repos/Islandora-CLAW/chullo","forks_url":"https://api.github.com/repos/Islandora-CLAW/chullo/forks","keys_url":"https://api.github.com/repos/Islandora-CLAW/chullo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Islandora-CLAW/chullo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Islandora-CLAW/chullo/teams","hooks_url":"https://api.github.com/repos/Islandora-CLAW/chullo/hooks","issue_events_url":"https://api.github.com/repos/Islandora-CLAW/chullo/issues/events{/number}","events_url":"https://api.github.com/repos/Islandora-CLAW/chullo/events","assignees_url":"https://api.github.com/repos/Islandora-CLAW/chullo/assignees{/user}","branches_url":"https://api.github.com/repos/Islandora-CLAW/chullo/branches{/branch}","tags_url":"https://api.github.com/repos/Islandora-CLAW/chullo/tags","blobs_url":"https://api.github.com/repos/Islandora-CLAW/chullo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Islandora-CLAW/chullo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Islandora-CLAW/chullo/git/refs{/sha}","trees_url":"https://api.github.com/repos/Islandora-CLAW/chullo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Islandora-CLAW/chullo/statuses/{sha}","languages_url":"https://api.github.com/repos/Islandora-CLAW/chullo/languages","stargazers_url":"https://api.github.com/repos/Islandora-CLAW/chullo/stargazers","contributors_url":"https://api.github.com/repos/Islandora-CLAW/chullo/contributors","subscribers_url":"https://api.github.com/repos/Islandora-CLAW/chullo/subscribers","subscription_url":"https://api.github.com/repos/Islandora-CLAW/chullo/subscription","commits_url":"https://api.github.com/repos/Islandora-CLAW/chullo/commits{/sha}","git_commits_url":"https://api.github.com/repos/Islandora-CLAW/chullo/git/commits{/sha}","comments_url":"https://api.github.com/repos/Islandora-CLAW/chullo/comments{/number}","issue_comment_url":"https://api.github.com/repos/Islandora-CLAW/chullo/issues/comments{/number}","contents_url":"https://api.github.com/repos/Islandora-CLAW/chullo/contents/{+path}","compare_url":"https://api.github.com/repos/Islandora-CLAW/chullo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Islandora-CLAW/chullo/merges","archive_url":"https://api.github.com/repos/Islandora-CLAW/chullo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Islandora-CLAW/chullo/downloads","issues_url":"https://api.github.com/repos/Islandora-CLAW/chullo/issues{/number}","pulls_url":"https://api.github.com/repos/Islandora-CLAW/chullo/pulls{/number}","milestones_url":"https://api.github.com/repos/Islandora-CLAW/chullo/milestones{/number}","notifications_url":"https://api.github.com/repos/Islandora-CLAW/chullo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Islandora-CLAW/chullo/labels{/name}","releases_url":"https://api.github.com/repos/Islandora-CLAW/chullo/releases{/id}","created_at":"2015-09-30T19:52:55Z","updated_at":"2015-11-05T20:35:19Z","pushed_at":"2015-11-09T14:54:05Z","git_url":"git://github.com/Islandora-CLAW/chullo.git","ssh_url":"git@github.com:Islandora-CLAW/chullo.git","clone_url":"https://github.com/Islandora-CLAW/chullo.git","svn_url":"https://github.com/Islandora-CLAW/chullo","homepage":null,"size":179,"stargazers_count":2,"watchers_count":2,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":10,"forks":3,"open_issues":10,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Islandora-CLAW/chullo/pulls/19"},"html":{"href":"https://github.com/Islandora-CLAW/chullo/pull/19"},"issue":{"href":"https://api.github.com/repos/Islandora-CLAW/chullo/issues/19"},"comments":{"href":"https://api.github.com/repos/Islandora-CLAW/chullo/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/Islandora-CLAW/chullo/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/Islandora-CLAW/chullo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Islandora-CLAW/chullo/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/Islandora-CLAW/chullo/statuses/2d5cd412e7efddf540c883830e1a4cd3f88aa831"}}}}