{"action":"created","comment":{"url":"https://api.github.com/repos/ipfs/js-ipfs-api/pulls/comments/45002156","id":45002156,"diff_hunk":"@@ -1,6 +1,7 @@\n var multiaddr = require('multiaddr')\n var getConfig = require('./config')\n var getRequestAPI = require('./request-api')\n+var request = require('request')","path":"src/index.js","position":4,"original_position":4,"commit_id":"9cdb0a2a5f68ed3814f23a0461f2cc161c905d07","original_commit_id":"9cdb0a2a5f68ed3814f23a0461f2cc161c905d07","user":{"login":"diasdavid","id":1211152,"avatar_url":"https://avatars.githubusercontent.com/u/1211152?v=3","gravatar_id":"","url":"https://api.github.com/users/diasdavid","html_url":"https://github.com/diasdavid","followers_url":"https://api.github.com/users/diasdavid/followers","following_url":"https://api.github.com/users/diasdavid/following{/other_user}","gists_url":"https://api.github.com/users/diasdavid/gists{/gist_id}","starred_url":"https://api.github.com/users/diasdavid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diasdavid/subscriptions","organizations_url":"https://api.github.com/users/diasdavid/orgs","repos_url":"https://api.github.com/users/diasdavid/repos","events_url":"https://api.github.com/users/diasdavid/events{/privacy}","received_events_url":"https://api.github.com/users/diasdavid/received_events","type":"User","site_admin":false},"body":"Not being able to confirm, but read somewhere that request gets polifilled in browserify. Nevertheless, there is https://www.npmjs.com/package/browser-request for that :) ","created_at":"2015-11-16T23:38:12Z","updated_at":"2015-11-16T23:38:12Z","html_url":"https://github.com/ipfs/js-ipfs-api/pull/121#discussion_r45002156","pull_request_url":"https://api.github.com/repos/ipfs/js-ipfs-api/pulls/121","_links":{"self":{"href":"https://api.github.com/repos/ipfs/js-ipfs-api/pulls/comments/45002156"},"html":{"href":"https://github.com/ipfs/js-ipfs-api/pull/121#discussion_r45002156"},"pull_request":{"href":"https://api.github.com/repos/ipfs/js-ipfs-api/pulls/121"}}},"pull_request":{"url":"https://api.github.com/repos/ipfs/js-ipfs-api/pulls/121","id":50872407,"html_url":"https://github.com/ipfs/js-ipfs-api/pull/121","diff_url":"https://github.com/ipfs/js-ipfs-api/pull/121.diff","patch_url":"https://github.com/ipfs/js-ipfs-api/pull/121.patch","issue_url":"https://api.github.com/repos/ipfs/js-ipfs-api/issues/121","number":121,"state":"open","locked":false,"title":"feat: Add urls directly.","user":{"login":"Dignifiedquire","id":790842,"avatar_url":"https://avatars.githubusercontent.com/u/790842?v=3","gravatar_id":"","url":"https://api.github.com/users/Dignifiedquire","html_url":"https://github.com/Dignifiedquire","followers_url":"https://api.github.com/users/Dignifiedquire/followers","following_url":"https://api.github.com/users/Dignifiedquire/following{/other_user}","gists_url":"https://api.github.com/users/Dignifiedquire/gists{/gist_id}","starred_url":"https://api.github.com/users/Dignifiedquire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dignifiedquire/subscriptions","organizations_url":"https://api.github.com/users/Dignifiedquire/orgs","repos_url":"https://api.github.com/users/Dignifiedquire/repos","events_url":"https://api.github.com/users/Dignifiedquire/events{/privacy}","received_events_url":"https://api.github.com/users/Dignifiedquire/received_events","type":"User","site_admin":false},"body":"Closes #109","created_at":"2015-11-16T21:59:15Z","updated_at":"2015-11-16T23:38:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ef028e0175525819a37f5f97bec3e52f48ad86a8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ipfs/js-ipfs-api/pulls/121/commits","review_comments_url":"https://api.github.com/repos/ipfs/js-ipfs-api/pulls/121/comments","review_comment_url":"https://api.github.com/repos/ipfs/js-ipfs-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ipfs/js-ipfs-api/issues/121/comments","statuses_url":"https://api.github.com/repos/ipfs/js-ipfs-api/statuses/9cdb0a2a5f68ed3814f23a0461f2cc161c905d07","head":{"label":"Dignifiedquire:add-http","ref":"add-http","sha":"9cdb0a2a5f68ed3814f23a0461f2cc161c905d07","user":{"login":"Dignifiedquire","id":790842,"avatar_url":"https://avatars.githubusercontent.com/u/790842?v=3","gravatar_id":"","url":"https://api.github.com/users/Dignifiedquire","html_url":"https://github.com/Dignifiedquire","followers_url":"https://api.github.com/users/Dignifiedquire/followers","following_url":"https://api.github.com/users/Dignifiedquire/following{/other_user}","gists_url":"https://api.github.com/users/Dignifiedquire/gists{/gist_id}","starred_url":"https://api.github.com/users/Dignifiedquire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dignifiedquire/subscriptions","organizations_url":"https://api.github.com/users/Dignifiedquire/orgs","repos_url":"https://api.github.com/users/Dignifiedquire/repos","events_url":"https://api.github.com/users/Dignifiedquire/events{/privacy}","received_events_url":"https://api.github.com/users/Dignifiedquire/received_events","type":"User","site_admin":false},"repo":{"id":44524488,"name":"js-ipfs-api","full_name":"Dignifiedquire/js-ipfs-api","owner":{"login":"Dignifiedquire","id":790842,"avatar_url":"https://avatars.githubusercontent.com/u/790842?v=3","gravatar_id":"","url":"https://api.github.com/users/Dignifiedquire","html_url":"https://github.com/Dignifiedquire","followers_url":"https://api.github.com/users/Dignifiedquire/followers","following_url":"https://api.github.com/users/Dignifiedquire/following{/other_user}","gists_url":"https://api.github.com/users/Dignifiedquire/gists{/gist_id}","starred_url":"https://api.github.com/users/Dignifiedquire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dignifiedquire/subscriptions","organizations_url":"https://api.github.com/users/Dignifiedquire/orgs","repos_url":"https://api.github.com/users/Dignifiedquire/repos","events_url":"https://api.github.com/users/Dignifiedquire/events{/privacy}","received_events_url":"https://api.github.com/users/Dignifiedquire/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Dignifiedquire/js-ipfs-api","description":"A node client library for the IPFS API","fork":true,"url":"https://api.github.com/repos/Dignifiedquire/js-ipfs-api","forks_url":"https://api.github.com/repos/Dignifiedquire/js-ipfs-api/forks","keys_url":"https://api.github.com/repos/Dignifiedquire/js-ipfs-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Dignifiedquire/js-ipfs-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Dignifiedquire/js-ipfs-api/teams","hooks_url":"https://api.github.com/repos/Dignifiedquire/js-ipfs-api/hooks","issue_events_url":"https://api.github.com/repos/Dignifiedquire/js-ipfs-api/issues/events{/number}","events_url":"https://api.github.com/repos/Dignifiedquire/js-ipfs-api/events","assignees_url":"https://api.github.com/repos/Dignifiedquire/js-ipfs-api/assignees{/user}","branches_url":"https://api.github.com/repos/Dignifiedquire/js-ipfs-api/branches{/branch}","tags_url":"https://api.github.com/repos/Dignifiedquire/js-ipfs-api/tags","blobs_url":"https://api.github.com/repos/Dignifiedquire/js-ipfs-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Dignifiedquire/js-ipfs-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Dignifiedquire/js-ipfs-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/Dignifiedquire/js-ipfs-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Dignifiedquire/js-ipfs-api/statuses/{sha}","languages_url":"https://api.github.com/repos/Dignifiedquire/js-ipfs-api/languages","stargazers_url":"https://api.github.com/repos/Dignifiedquire/js-ipfs-api/stargazers","contributors_url":"https://api.github.com/repos/Dignifiedquire/js-ipfs-api/contributors","subscribers_url":"https://api.github.com/repos/Dignifiedquire/js-ipfs-api/subscribers","subscription_url":"https://api.github.com/repos/Dignifiedquire/js-ipfs-api/subscription","commits_url":"https://api.github.com/repos/Dignifiedquire/js-ipfs-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/Dignifiedquire/js-ipfs-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/Dignifiedquire/js-ipfs-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/Dignifiedquire/js-ipfs-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/Dignifiedquire/js-ipfs-api/contents/{+path}","compare_url":"https://api.github.com/repos/Dignifiedquire/js-ipfs-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Dignifiedquire/js-ipfs-api/merges","archive_url":"https://api.github.com/repos/Dignifiedquire/js-ipfs-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Dignifiedquire/js-ipfs-api/downloads","issues_url":"https://api.github.com/repos/Dignifiedquire/js-ipfs-api/issues{/number}","pulls_url":"https://api.github.com/repos/Dignifiedquire/js-ipfs-api/pulls{/number}","milestones_url":"https://api.github.com/repos/Dignifiedquire/js-ipfs-api/milestones{/number}","notifications_url":"https://api.github.com/repos/Dignifiedquire/js-ipfs-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Dignifiedquire/js-ipfs-api/labels{/name}","releases_url":"https://api.github.com/repos/Dignifiedquire/js-ipfs-api/releases{/id}","created_at":"2015-10-19T09:31:26Z","updated_at":"2015-10-29T11:05:46Z","pushed_at":"2015-11-16T22:38:08Z","git_url":"git://github.com/Dignifiedquire/js-ipfs-api.git","ssh_url":"git@github.com:Dignifiedquire/js-ipfs-api.git","clone_url":"https://github.com/Dignifiedquire/js-ipfs-api.git","svn_url":"https://github.com/Dignifiedquire/js-ipfs-api","homepage":"","size":3387,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"ipfs:master","ref":"master","sha":"375c80a50efbb86ae035038a572e0b715f378d52","user":{"login":"ipfs","id":10536621,"avatar_url":"https://avatars.githubusercontent.com/u/10536621?v=3","gravatar_id":"","url":"https://api.github.com/users/ipfs","html_url":"https://github.com/ipfs","followers_url":"https://api.github.com/users/ipfs/followers","following_url":"https://api.github.com/users/ipfs/following{/other_user}","gists_url":"https://api.github.com/users/ipfs/gists{/gist_id}","starred_url":"https://api.github.com/users/ipfs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ipfs/subscriptions","organizations_url":"https://api.github.com/users/ipfs/orgs","repos_url":"https://api.github.com/users/ipfs/repos","events_url":"https://api.github.com/users/ipfs/events{/privacy}","received_events_url":"https://api.github.com/users/ipfs/received_events","type":"Organization","site_admin":false},"repo":{"id":24031839,"name":"js-ipfs-api","full_name":"ipfs/js-ipfs-api","owner":{"login":"ipfs","id":10536621,"avatar_url":"https://avatars.githubusercontent.com/u/10536621?v=3","gravatar_id":"","url":"https://api.github.com/users/ipfs","html_url":"https://github.com/ipfs","followers_url":"https://api.github.com/users/ipfs/followers","following_url":"https://api.github.com/users/ipfs/following{/other_user}","gists_url":"https://api.github.com/users/ipfs/gists{/gist_id}","starred_url":"https://api.github.com/users/ipfs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ipfs/subscriptions","organizations_url":"https://api.github.com/users/ipfs/orgs","repos_url":"https://api.github.com/users/ipfs/repos","events_url":"https://api.github.com/users/ipfs/events{/privacy}","received_events_url":"https://api.github.com/users/ipfs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ipfs/js-ipfs-api","description":"A client library for the IPFS HTTP API, implemented in JavaScript.","fork":false,"url":"https://api.github.com/repos/ipfs/js-ipfs-api","forks_url":"https://api.github.com/repos/ipfs/js-ipfs-api/forks","keys_url":"https://api.github.com/repos/ipfs/js-ipfs-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ipfs/js-ipfs-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ipfs/js-ipfs-api/teams","hooks_url":"https://api.github.com/repos/ipfs/js-ipfs-api/hooks","issue_events_url":"https://api.github.com/repos/ipfs/js-ipfs-api/issues/events{/number}","events_url":"https://api.github.com/repos/ipfs/js-ipfs-api/events","assignees_url":"https://api.github.com/repos/ipfs/js-ipfs-api/assignees{/user}","branches_url":"https://api.github.com/repos/ipfs/js-ipfs-api/branches{/branch}","tags_url":"https://api.github.com/repos/ipfs/js-ipfs-api/tags","blobs_url":"https://api.github.com/repos/ipfs/js-ipfs-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ipfs/js-ipfs-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ipfs/js-ipfs-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/ipfs/js-ipfs-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ipfs/js-ipfs-api/statuses/{sha}","languages_url":"https://api.github.com/repos/ipfs/js-ipfs-api/languages","stargazers_url":"https://api.github.com/repos/ipfs/js-ipfs-api/stargazers","contributors_url":"https://api.github.com/repos/ipfs/js-ipfs-api/contributors","subscribers_url":"https://api.github.com/repos/ipfs/js-ipfs-api/subscribers","subscription_url":"https://api.github.com/repos/ipfs/js-ipfs-api/subscription","commits_url":"https://api.github.com/repos/ipfs/js-ipfs-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/ipfs/js-ipfs-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/ipfs/js-ipfs-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/ipfs/js-ipfs-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/ipfs/js-ipfs-api/contents/{+path}","compare_url":"https://api.github.com/repos/ipfs/js-ipfs-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ipfs/js-ipfs-api/merges","archive_url":"https://api.github.com/repos/ipfs/js-ipfs-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ipfs/js-ipfs-api/downloads","issues_url":"https://api.github.com/repos/ipfs/js-ipfs-api/issues{/number}","pulls_url":"https://api.github.com/repos/ipfs/js-ipfs-api/pulls{/number}","milestones_url":"https://api.github.com/repos/ipfs/js-ipfs-api/milestones{/number}","notifications_url":"https://api.github.com/repos/ipfs/js-ipfs-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ipfs/js-ipfs-api/labels{/name}","releases_url":"https://api.github.com/repos/ipfs/js-ipfs-api/releases{/id}","created_at":"2014-09-14T19:57:50Z","updated_at":"2015-11-16T15:45:55Z","pushed_at":"2015-11-16T22:38:07Z","git_url":"git://github.com/ipfs/js-ipfs-api.git","ssh_url":"git@github.com:ipfs/js-ipfs-api.git","clone_url":"https://github.com/ipfs/js-ipfs-api.git","svn_url":"https://github.com/ipfs/js-ipfs-api","homepage":"","size":3440,"stargazers_count":65,"watchers_count":65,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":20,"forks":24,"open_issues":20,"watchers":65,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ipfs/js-ipfs-api/pulls/121"},"html":{"href":"https://github.com/ipfs/js-ipfs-api/pull/121"},"issue":{"href":"https://api.github.com/repos/ipfs/js-ipfs-api/issues/121"},"comments":{"href":"https://api.github.com/repos/ipfs/js-ipfs-api/issues/121/comments"},"review_comments":{"href":"https://api.github.com/repos/ipfs/js-ipfs-api/pulls/121/comments"},"review_comment":{"href":"https://api.github.com/repos/ipfs/js-ipfs-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ipfs/js-ipfs-api/pulls/121/commits"},"statuses":{"href":"https://api.github.com/repos/ipfs/js-ipfs-api/statuses/9cdb0a2a5f68ed3814f23a0461f2cc161c905d07"}}}}