{"action":"closed","number":832,"pull_request":{"url":"https://api.github.com/repos/mitmproxy/mitmproxy/pulls/832","id":50526854,"html_url":"https://github.com/mitmproxy/mitmproxy/pull/832","diff_url":"https://github.com/mitmproxy/mitmproxy/pull/832.diff","patch_url":"https://github.com/mitmproxy/mitmproxy/pull/832.patch","issue_url":"https://api.github.com/repos/mitmproxy/mitmproxy/issues/832","number":832,"state":"closed","locked":false,"title":"Custom contentviews","user":{"login":"zbuc","id":570040,"avatar_url":"https://avatars.githubusercontent.com/u/570040?v=3","gravatar_id":"","url":"https://api.github.com/users/zbuc","html_url":"https://github.com/zbuc","followers_url":"https://api.github.com/users/zbuc/followers","following_url":"https://api.github.com/users/zbuc/following{/other_user}","gists_url":"https://api.github.com/users/zbuc/gists{/gist_id}","starred_url":"https://api.github.com/users/zbuc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zbuc/subscriptions","organizations_url":"https://api.github.com/users/zbuc/orgs","repos_url":"https://api.github.com/users/zbuc/repos","events_url":"https://api.github.com/users/zbuc/events{/privacy}","received_events_url":"https://api.github.com/users/zbuc/received_events","type":"User","site_admin":false},"body":"This adds the ability to register custom contentviews.\r\n\r\nI'm not convinced this is the best way. I liked the original implementation I had in https://github.com/mitmproxy/mitmproxy/pull/700 but it wasn't contentview friendly.\r\n\r\nThe new implementation requires scripts to define subclasses of `libmproxy.contentviews.View` and produce lists of formatted tuples rather than the simple string-based approach used in PR #700.","created_at":"2015-11-12T15:45:07Z","updated_at":"2015-12-02T23:59:10Z","closed_at":"2015-12-02T23:59:10Z","merged_at":null,"merge_commit_sha":"3bf73cab6c1cb12cc608c766b277317d9956cb90","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mitmproxy/mitmproxy/pulls/832/commits","review_comments_url":"https://api.github.com/repos/mitmproxy/mitmproxy/pulls/832/comments","review_comment_url":"https://api.github.com/repos/mitmproxy/mitmproxy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mitmproxy/mitmproxy/issues/832/comments","statuses_url":"https://api.github.com/repos/mitmproxy/mitmproxy/statuses/f9b46ee901bec5ea93b30e46e99622486e20a12b","head":{"label":"zbuc:custom_contentviews","ref":"custom_contentviews","sha":"f9b46ee901bec5ea93b30e46e99622486e20a12b","user":{"login":"zbuc","id":570040,"avatar_url":"https://avatars.githubusercontent.com/u/570040?v=3","gravatar_id":"","url":"https://api.github.com/users/zbuc","html_url":"https://github.com/zbuc","followers_url":"https://api.github.com/users/zbuc/followers","following_url":"https://api.github.com/users/zbuc/following{/other_user}","gists_url":"https://api.github.com/users/zbuc/gists{/gist_id}","starred_url":"https://api.github.com/users/zbuc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zbuc/subscriptions","organizations_url":"https://api.github.com/users/zbuc/orgs","repos_url":"https://api.github.com/users/zbuc/repos","events_url":"https://api.github.com/users/zbuc/events{/privacy}","received_events_url":"https://api.github.com/users/zbuc/received_events","type":"User","site_admin":false},"repo":{"id":30997791,"name":"mitmproxy","full_name":"zbuc/mitmproxy","owner":{"login":"zbuc","id":570040,"avatar_url":"https://avatars.githubusercontent.com/u/570040?v=3","gravatar_id":"","url":"https://api.github.com/users/zbuc","html_url":"https://github.com/zbuc","followers_url":"https://api.github.com/users/zbuc/followers","following_url":"https://api.github.com/users/zbuc/following{/other_user}","gists_url":"https://api.github.com/users/zbuc/gists{/gist_id}","starred_url":"https://api.github.com/users/zbuc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zbuc/subscriptions","organizations_url":"https://api.github.com/users/zbuc/orgs","repos_url":"https://api.github.com/users/zbuc/repos","events_url":"https://api.github.com/users/zbuc/events{/privacy}","received_events_url":"https://api.github.com/users/zbuc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zbuc/mitmproxy","description":"An interactive SSL-capable intercepting HTTP proxy for penetration testers and software developers","fork":true,"url":"https://api.github.com/repos/zbuc/mitmproxy","forks_url":"https://api.github.com/repos/zbuc/mitmproxy/forks","keys_url":"https://api.github.com/repos/zbuc/mitmproxy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zbuc/mitmproxy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zbuc/mitmproxy/teams","hooks_url":"https://api.github.com/repos/zbuc/mitmproxy/hooks","issue_events_url":"https://api.github.com/repos/zbuc/mitmproxy/issues/events{/number}","events_url":"https://api.github.com/repos/zbuc/mitmproxy/events","assignees_url":"https://api.github.com/repos/zbuc/mitmproxy/assignees{/user}","branches_url":"https://api.github.com/repos/zbuc/mitmproxy/branches{/branch}","tags_url":"https://api.github.com/repos/zbuc/mitmproxy/tags","blobs_url":"https://api.github.com/repos/zbuc/mitmproxy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zbuc/mitmproxy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zbuc/mitmproxy/git/refs{/sha}","trees_url":"https://api.github.com/repos/zbuc/mitmproxy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zbuc/mitmproxy/statuses/{sha}","languages_url":"https://api.github.com/repos/zbuc/mitmproxy/languages","stargazers_url":"https://api.github.com/repos/zbuc/mitmproxy/stargazers","contributors_url":"https://api.github.com/repos/zbuc/mitmproxy/contributors","subscribers_url":"https://api.github.com/repos/zbuc/mitmproxy/subscribers","subscription_url":"https://api.github.com/repos/zbuc/mitmproxy/subscription","commits_url":"https://api.github.com/repos/zbuc/mitmproxy/commits{/sha}","git_commits_url":"https://api.github.com/repos/zbuc/mitmproxy/git/commits{/sha}","comments_url":"https://api.github.com/repos/zbuc/mitmproxy/comments{/number}","issue_comment_url":"https://api.github.com/repos/zbuc/mitmproxy/issues/comments{/number}","contents_url":"https://api.github.com/repos/zbuc/mitmproxy/contents/{+path}","compare_url":"https://api.github.com/repos/zbuc/mitmproxy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zbuc/mitmproxy/merges","archive_url":"https://api.github.com/repos/zbuc/mitmproxy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zbuc/mitmproxy/downloads","issues_url":"https://api.github.com/repos/zbuc/mitmproxy/issues{/number}","pulls_url":"https://api.github.com/repos/zbuc/mitmproxy/pulls{/number}","milestones_url":"https://api.github.com/repos/zbuc/mitmproxy/milestones{/number}","notifications_url":"https://api.github.com/repos/zbuc/mitmproxy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zbuc/mitmproxy/labels{/name}","releases_url":"https://api.github.com/repos/zbuc/mitmproxy/releases{/id}","created_at":"2015-02-19T02:18:04Z","updated_at":"2015-03-04T03:01:24Z","pushed_at":"2015-11-16T16:54:28Z","git_url":"git://github.com/zbuc/mitmproxy.git","ssh_url":"git@github.com:zbuc/mitmproxy.git","clone_url":"https://github.com/zbuc/mitmproxy.git","svn_url":"https://github.com/zbuc/mitmproxy","homepage":"http://mitmproxy.org","size":24207,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"mitmproxy:master","ref":"master","sha":"6b92497d4f1d9fc0a98c42f66ab2bf81e8fa2fc7","user":{"login":"mitmproxy","id":4652787,"avatar_url":"https://avatars.githubusercontent.com/u/4652787?v=3","gravatar_id":"","url":"https://api.github.com/users/mitmproxy","html_url":"https://github.com/mitmproxy","followers_url":"https://api.github.com/users/mitmproxy/followers","following_url":"https://api.github.com/users/mitmproxy/following{/other_user}","gists_url":"https://api.github.com/users/mitmproxy/gists{/gist_id}","starred_url":"https://api.github.com/users/mitmproxy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitmproxy/subscriptions","organizations_url":"https://api.github.com/users/mitmproxy/orgs","repos_url":"https://api.github.com/users/mitmproxy/repos","events_url":"https://api.github.com/users/mitmproxy/events{/privacy}","received_events_url":"https://api.github.com/users/mitmproxy/received_events","type":"Organization","site_admin":false},"repo":{"id":519832,"name":"mitmproxy","full_name":"mitmproxy/mitmproxy","owner":{"login":"mitmproxy","id":4652787,"avatar_url":"https://avatars.githubusercontent.com/u/4652787?v=3","gravatar_id":"","url":"https://api.github.com/users/mitmproxy","html_url":"https://github.com/mitmproxy","followers_url":"https://api.github.com/users/mitmproxy/followers","following_url":"https://api.github.com/users/mitmproxy/following{/other_user}","gists_url":"https://api.github.com/users/mitmproxy/gists{/gist_id}","starred_url":"https://api.github.com/users/mitmproxy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitmproxy/subscriptions","organizations_url":"https://api.github.com/users/mitmproxy/orgs","repos_url":"https://api.github.com/users/mitmproxy/repos","events_url":"https://api.github.com/users/mitmproxy/events{/privacy}","received_events_url":"https://api.github.com/users/mitmproxy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mitmproxy/mitmproxy","description":"An interactive SSL-capable intercepting HTTP proxy for penetration testers and software developers","fork":false,"url":"https://api.github.com/repos/mitmproxy/mitmproxy","forks_url":"https://api.github.com/repos/mitmproxy/mitmproxy/forks","keys_url":"https://api.github.com/repos/mitmproxy/mitmproxy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mitmproxy/mitmproxy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mitmproxy/mitmproxy/teams","hooks_url":"https://api.github.com/repos/mitmproxy/mitmproxy/hooks","issue_events_url":"https://api.github.com/repos/mitmproxy/mitmproxy/issues/events{/number}","events_url":"https://api.github.com/repos/mitmproxy/mitmproxy/events","assignees_url":"https://api.github.com/repos/mitmproxy/mitmproxy/assignees{/user}","branches_url":"https://api.github.com/repos/mitmproxy/mitmproxy/branches{/branch}","tags_url":"https://api.github.com/repos/mitmproxy/mitmproxy/tags","blobs_url":"https://api.github.com/repos/mitmproxy/mitmproxy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mitmproxy/mitmproxy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mitmproxy/mitmproxy/git/refs{/sha}","trees_url":"https://api.github.com/repos/mitmproxy/mitmproxy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mitmproxy/mitmproxy/statuses/{sha}","languages_url":"https://api.github.com/repos/mitmproxy/mitmproxy/languages","stargazers_url":"https://api.github.com/repos/mitmproxy/mitmproxy/stargazers","contributors_url":"https://api.github.com/repos/mitmproxy/mitmproxy/contributors","subscribers_url":"https://api.github.com/repos/mitmproxy/mitmproxy/subscribers","subscription_url":"https://api.github.com/repos/mitmproxy/mitmproxy/subscription","commits_url":"https://api.github.com/repos/mitmproxy/mitmproxy/commits{/sha}","git_commits_url":"https://api.github.com/repos/mitmproxy/mitmproxy/git/commits{/sha}","comments_url":"https://api.github.com/repos/mitmproxy/mitmproxy/comments{/number}","issue_comment_url":"https://api.github.com/repos/mitmproxy/mitmproxy/issues/comments{/number}","contents_url":"https://api.github.com/repos/mitmproxy/mitmproxy/contents/{+path}","compare_url":"https://api.github.com/repos/mitmproxy/mitmproxy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mitmproxy/mitmproxy/merges","archive_url":"https://api.github.com/repos/mitmproxy/mitmproxy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mitmproxy/mitmproxy/downloads","issues_url":"https://api.github.com/repos/mitmproxy/mitmproxy/issues{/number}","pulls_url":"https://api.github.com/repos/mitmproxy/mitmproxy/pulls{/number}","milestones_url":"https://api.github.com/repos/mitmproxy/mitmproxy/milestones{/number}","notifications_url":"https://api.github.com/repos/mitmproxy/mitmproxy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mitmproxy/mitmproxy/labels{/name}","releases_url":"https://api.github.com/repos/mitmproxy/mitmproxy/releases{/id}","created_at":"2010-02-16T04:10:13Z","updated_at":"2015-12-02T16:54:37Z","pushed_at":"2015-12-02T20:19:49Z","git_url":"git://github.com/mitmproxy/mitmproxy.git","ssh_url":"git@github.com:mitmproxy/mitmproxy.git","clone_url":"https://github.com/mitmproxy/mitmproxy.git","svn_url":"https://github.com/mitmproxy/mitmproxy","homepage":"http://mitmproxy.org","size":24564,"stargazers_count":4180,"watchers_count":4180,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":569,"mirror_url":null,"open_issues_count":60,"forks":569,"open_issues":60,"watchers":4180,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mitmproxy/mitmproxy/pulls/832"},"html":{"href":"https://github.com/mitmproxy/mitmproxy/pull/832"},"issue":{"href":"https://api.github.com/repos/mitmproxy/mitmproxy/issues/832"},"comments":{"href":"https://api.github.com/repos/mitmproxy/mitmproxy/issues/832/comments"},"review_comments":{"href":"https://api.github.com/repos/mitmproxy/mitmproxy/pulls/832/comments"},"review_comment":{"href":"https://api.github.com/repos/mitmproxy/mitmproxy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mitmproxy/mitmproxy/pulls/832/commits"},"statuses":{"href":"https://api.github.com/repos/mitmproxy/mitmproxy/statuses/f9b46ee901bec5ea93b30e46e99622486e20a12b"}},"merged":false,"mergeable":false,"mergeable_state":"dirty","merged_by":null,"comments":0,"review_comments":14,"commits":4,"additions":1298,"deletions":493,"changed_files":18}}