{"action":"created","comment":{"url":"https://api.github.com/repos/citra-emu/citra/pulls/comments/30001087","id":30001087,"diff_hunk":"@@ -0,0 +1,74 @@\n+// Copyright 2015 Citra Emulator Project\n+// Licensed under GPLv2 or any later version\n+// Refer to the license.txt file included.\n+\n+#pragma once\n+\n+#include <vector>\n+#include <mutex>\n+#include <memory>\n+#include <thread>\n+#include <unordered_map>\n+\n+#include \"core/hle/result.h\"\n+\n+struct curl_slist;\n+\n+namespace Service {\n+namespace HTTP {\n+\n+typedef u32 ContextHandle;\n+\n+enum RequestType : u32 {\n+    REQUEST_TYPE_NONE   = 0,\n+    REQUEST_TYPE_GET    = 1,\n+    REQUEST_TYPE_POST   = 2,\n+    REQUEST_TYPE_HEAD   = 3,\n+    REQUEST_TYPE_PUT    = 4,\n+    REQUEST_TYPE_DELETE = 5,\n+    REQUEST_TYPE_POST_  = 6,\n+    REQUEST_TYPE_PUT_   = 7\n+};\n+\n+enum RequestState : u32 {\n+    REQUEST_STATE_DEFAULT, // TODO\n+    REQUEST_STATE_IN_PROGRESS = 5,\n+    REQUEST_STATE_READY = 8,\n+};\n+\n+struct HttpContext {","path":"src/core/hle/service/http/http.h","position":39,"original_position":39,"commit_id":"07a87fe84c7223e96d4faab31facbd3166a806fe","original_commit_id":"07a87fe84c7223e96d4faab31facbd3166a806fe","user":{"login":"neobrain","id":4840017,"avatar_url":"https://avatars.githubusercontent.com/u/4840017?v=3","gravatar_id":"","url":"https://api.github.com/users/neobrain","html_url":"https://github.com/neobrain","followers_url":"https://api.github.com/users/neobrain/followers","following_url":"https://api.github.com/users/neobrain/following{/other_user}","gists_url":"https://api.github.com/users/neobrain/gists{/gist_id}","starred_url":"https://api.github.com/users/neobrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neobrain/subscriptions","organizations_url":"https://api.github.com/users/neobrain/orgs","repos_url":"https://api.github.com/users/neobrain/repos","events_url":"https://api.github.com/users/neobrain/events{/privacy}","received_events_url":"https://api.github.com/users/neobrain/received_events","type":"User","site_admin":false},"body":"Is it clear what a \"http context\" actually is? if not, could we have some documentation explaining what this struct's purpose is?","created_at":"2015-05-10T11:19:21Z","updated_at":"2015-05-10T11:19:21Z","html_url":"https://github.com/citra-emu/citra/pull/738#discussion_r30001087","pull_request_url":"https://api.github.com/repos/citra-emu/citra/pulls/738","_links":{"self":{"href":"https://api.github.com/repos/citra-emu/citra/pulls/comments/30001087"},"html":{"href":"https://github.com/citra-emu/citra/pull/738#discussion_r30001087"},"pull_request":{"href":"https://api.github.com/repos/citra-emu/citra/pulls/738"}}},"pull_request":{"url":"https://api.github.com/repos/citra-emu/citra/pulls/738","id":35077507,"html_url":"https://github.com/citra-emu/citra/pull/738","diff_url":"https://github.com/citra-emu/citra/pull/738.diff","patch_url":"https://github.com/citra-emu/citra/pull/738.patch","issue_url":"https://api.github.com/repos/citra-emu/citra/issues/738","number":738,"state":"open","locked":false,"title":"[RFC] Implementation of http:C service.","user":{"login":"archshift","id":5377832,"avatar_url":"https://avatars.githubusercontent.com/u/5377832?v=3","gravatar_id":"","url":"https://api.github.com/users/archshift","html_url":"https://github.com/archshift","followers_url":"https://api.github.com/users/archshift/followers","following_url":"https://api.github.com/users/archshift/following{/other_user}","gists_url":"https://api.github.com/users/archshift/gists{/gist_id}","starred_url":"https://api.github.com/users/archshift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/archshift/subscriptions","organizations_url":"https://api.github.com/users/archshift/orgs","repos_url":"https://api.github.com/users/archshift/repos","events_url":"https://api.github.com/users/archshift/events{/privacy}","received_events_url":"https://api.github.com/users/archshift/received_events","type":"User","site_admin":false},"body":"Early implementation, but it's enough to run DownloadMii and get Nintendo Zone farther (although I suspect it depends on SSL, which will be a later PR).\r\n\r\nNote that the cURL submodule does not currently work and as such the CMake code for it is commented out. I still have to figure out a good way to integrate that.\r\n\r\nAlso, lots of hwtests to be done to verify errors or certain behaviors. ","created_at":"2015-05-10T05:00:53Z","updated_at":"2015-05-10T11:19:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5e63d9d0e7ffc2699e8e64516a98def2208b55fb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/citra-emu/citra/pulls/738/commits","review_comments_url":"https://api.github.com/repos/citra-emu/citra/pulls/738/comments","review_comment_url":"https://api.github.com/repos/citra-emu/citra/pulls/comments{/number}","comments_url":"https://api.github.com/repos/citra-emu/citra/issues/738/comments","statuses_url":"https://api.github.com/repos/citra-emu/citra/statuses/07a87fe84c7223e96d4faab31facbd3166a806fe","head":{"label":"archshift:http","ref":"http","sha":"07a87fe84c7223e96d4faab31facbd3166a806fe","user":{"login":"archshift","id":5377832,"avatar_url":"https://avatars.githubusercontent.com/u/5377832?v=3","gravatar_id":"","url":"https://api.github.com/users/archshift","html_url":"https://github.com/archshift","followers_url":"https://api.github.com/users/archshift/followers","following_url":"https://api.github.com/users/archshift/following{/other_user}","gists_url":"https://api.github.com/users/archshift/gists{/gist_id}","starred_url":"https://api.github.com/users/archshift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/archshift/subscriptions","organizations_url":"https://api.github.com/users/archshift/orgs","repos_url":"https://api.github.com/users/archshift/repos","events_url":"https://api.github.com/users/archshift/events{/privacy}","received_events_url":"https://api.github.com/users/archshift/received_events","type":"User","site_admin":false},"repo":{"id":19927346,"name":"citra","full_name":"archshift/citra","owner":{"login":"archshift","id":5377832,"avatar_url":"https://avatars.githubusercontent.com/u/5377832?v=3","gravatar_id":"","url":"https://api.github.com/users/archshift","html_url":"https://github.com/archshift","followers_url":"https://api.github.com/users/archshift/followers","following_url":"https://api.github.com/users/archshift/following{/other_user}","gists_url":"https://api.github.com/users/archshift/gists{/gist_id}","starred_url":"https://api.github.com/users/archshift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/archshift/subscriptions","organizations_url":"https://api.github.com/users/archshift/orgs","repos_url":"https://api.github.com/users/archshift/repos","events_url":"https://api.github.com/users/archshift/events{/privacy}","received_events_url":"https://api.github.com/users/archshift/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/archshift/citra","description":"Nintendo 3DS emulator/debugger","fork":true,"url":"https://api.github.com/repos/archshift/citra","forks_url":"https://api.github.com/repos/archshift/citra/forks","keys_url":"https://api.github.com/repos/archshift/citra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/archshift/citra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/archshift/citra/teams","hooks_url":"https://api.github.com/repos/archshift/citra/hooks","issue_events_url":"https://api.github.com/repos/archshift/citra/issues/events{/number}","events_url":"https://api.github.com/repos/archshift/citra/events","assignees_url":"https://api.github.com/repos/archshift/citra/assignees{/user}","branches_url":"https://api.github.com/repos/archshift/citra/branches{/branch}","tags_url":"https://api.github.com/repos/archshift/citra/tags","blobs_url":"https://api.github.com/repos/archshift/citra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/archshift/citra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/archshift/citra/git/refs{/sha}","trees_url":"https://api.github.com/repos/archshift/citra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/archshift/citra/statuses/{sha}","languages_url":"https://api.github.com/repos/archshift/citra/languages","stargazers_url":"https://api.github.com/repos/archshift/citra/stargazers","contributors_url":"https://api.github.com/repos/archshift/citra/contributors","subscribers_url":"https://api.github.com/repos/archshift/citra/subscribers","subscription_url":"https://api.github.com/repos/archshift/citra/subscription","commits_url":"https://api.github.com/repos/archshift/citra/commits{/sha}","git_commits_url":"https://api.github.com/repos/archshift/citra/git/commits{/sha}","comments_url":"https://api.github.com/repos/archshift/citra/comments{/number}","issue_comment_url":"https://api.github.com/repos/archshift/citra/issues/comments{/number}","contents_url":"https://api.github.com/repos/archshift/citra/contents/{+path}","compare_url":"https://api.github.com/repos/archshift/citra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/archshift/citra/merges","archive_url":"https://api.github.com/repos/archshift/citra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/archshift/citra/downloads","issues_url":"https://api.github.com/repos/archshift/citra/issues{/number}","pulls_url":"https://api.github.com/repos/archshift/citra/pulls{/number}","milestones_url":"https://api.github.com/repos/archshift/citra/milestones{/number}","notifications_url":"https://api.github.com/repos/archshift/citra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/archshift/citra/labels{/name}","releases_url":"https://api.github.com/repos/archshift/citra/releases{/id}","created_at":"2014-05-19T02:50:51Z","updated_at":"2015-04-11T08:09:31Z","pushed_at":"2015-05-10T04:54:33Z","git_url":"git://github.com/archshift/citra.git","ssh_url":"git@github.com:archshift/citra.git","clone_url":"https://github.com/archshift/citra.git","svn_url":"https://github.com/archshift/citra","homepage":null,"size":9130,"stargazers_count":1,"watchers_count":1,"language":"C++","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":1,"default_branch":"master"}},"base":{"label":"citra-emu:master","ref":"master","sha":"ba0bfe7d82a241f1dbe449a1bdcc2a76c594c667","user":{"login":"citra-emu","id":7605670,"avatar_url":"https://avatars.githubusercontent.com/u/7605670?v=3","gravatar_id":"","url":"https://api.github.com/users/citra-emu","html_url":"https://github.com/citra-emu","followers_url":"https://api.github.com/users/citra-emu/followers","following_url":"https://api.github.com/users/citra-emu/following{/other_user}","gists_url":"https://api.github.com/users/citra-emu/gists{/gist_id}","starred_url":"https://api.github.com/users/citra-emu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/citra-emu/subscriptions","organizations_url":"https://api.github.com/users/citra-emu/orgs","repos_url":"https://api.github.com/users/citra-emu/repos","events_url":"https://api.github.com/users/citra-emu/events{/privacy}","received_events_url":"https://api.github.com/users/citra-emu/received_events","type":"Organization","site_admin":false},"repo":{"id":19866730,"name":"citra","full_name":"citra-emu/citra","owner":{"login":"citra-emu","id":7605670,"avatar_url":"https://avatars.githubusercontent.com/u/7605670?v=3","gravatar_id":"","url":"https://api.github.com/users/citra-emu","html_url":"https://github.com/citra-emu","followers_url":"https://api.github.com/users/citra-emu/followers","following_url":"https://api.github.com/users/citra-emu/following{/other_user}","gists_url":"https://api.github.com/users/citra-emu/gists{/gist_id}","starred_url":"https://api.github.com/users/citra-emu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/citra-emu/subscriptions","organizations_url":"https://api.github.com/users/citra-emu/orgs","repos_url":"https://api.github.com/users/citra-emu/repos","events_url":"https://api.github.com/users/citra-emu/events{/privacy}","received_events_url":"https://api.github.com/users/citra-emu/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/citra-emu/citra","description":"Nintendo 3DS emulator/debugger","fork":false,"url":"https://api.github.com/repos/citra-emu/citra","forks_url":"https://api.github.com/repos/citra-emu/citra/forks","keys_url":"https://api.github.com/repos/citra-emu/citra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/citra-emu/citra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/citra-emu/citra/teams","hooks_url":"https://api.github.com/repos/citra-emu/citra/hooks","issue_events_url":"https://api.github.com/repos/citra-emu/citra/issues/events{/number}","events_url":"https://api.github.com/repos/citra-emu/citra/events","assignees_url":"https://api.github.com/repos/citra-emu/citra/assignees{/user}","branches_url":"https://api.github.com/repos/citra-emu/citra/branches{/branch}","tags_url":"https://api.github.com/repos/citra-emu/citra/tags","blobs_url":"https://api.github.com/repos/citra-emu/citra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/citra-emu/citra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/citra-emu/citra/git/refs{/sha}","trees_url":"https://api.github.com/repos/citra-emu/citra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/citra-emu/citra/statuses/{sha}","languages_url":"https://api.github.com/repos/citra-emu/citra/languages","stargazers_url":"https://api.github.com/repos/citra-emu/citra/stargazers","contributors_url":"https://api.github.com/repos/citra-emu/citra/contributors","subscribers_url":"https://api.github.com/repos/citra-emu/citra/subscribers","subscription_url":"https://api.github.com/repos/citra-emu/citra/subscription","commits_url":"https://api.github.com/repos/citra-emu/citra/commits{/sha}","git_commits_url":"https://api.github.com/repos/citra-emu/citra/git/commits{/sha}","comments_url":"https://api.github.com/repos/citra-emu/citra/comments{/number}","issue_comment_url":"https://api.github.com/repos/citra-emu/citra/issues/comments{/number}","contents_url":"https://api.github.com/repos/citra-emu/citra/contents/{+path}","compare_url":"https://api.github.com/repos/citra-emu/citra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/citra-emu/citra/merges","archive_url":"https://api.github.com/repos/citra-emu/citra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/citra-emu/citra/downloads","issues_url":"https://api.github.com/repos/citra-emu/citra/issues{/number}","pulls_url":"https://api.github.com/repos/citra-emu/citra/pulls{/number}","milestones_url":"https://api.github.com/repos/citra-emu/citra/milestones{/number}","notifications_url":"https://api.github.com/repos/citra-emu/citra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/citra-emu/citra/labels{/name}","releases_url":"https://api.github.com/repos/citra-emu/citra/releases{/id}","created_at":"2014-05-16T18:33:15Z","updated_at":"2015-05-10T01:28:00Z","pushed_at":"2015-05-10T05:00:53Z","git_url":"git://github.com/citra-emu/citra.git","ssh_url":"git@github.com:citra-emu/citra.git","clone_url":"https://github.com/citra-emu/citra.git","svn_url":"https://github.com/citra-emu/citra","homepage":null,"size":22555,"stargazers_count":794,"watchers_count":794,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":203,"mirror_url":null,"open_issues_count":46,"forks":203,"open_issues":46,"watchers":794,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/citra-emu/citra/pulls/738"},"html":{"href":"https://github.com/citra-emu/citra/pull/738"},"issue":{"href":"https://api.github.com/repos/citra-emu/citra/issues/738"},"comments":{"href":"https://api.github.com/repos/citra-emu/citra/issues/738/comments"},"review_comments":{"href":"https://api.github.com/repos/citra-emu/citra/pulls/738/comments"},"review_comment":{"href":"https://api.github.com/repos/citra-emu/citra/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/citra-emu/citra/pulls/738/commits"},"statuses":{"href":"https://api.github.com/repos/citra-emu/citra/statuses/07a87fe84c7223e96d4faab31facbd3166a806fe"}}}}