{"action":"created","comment":{"url":"https://api.github.com/repos/reverbrain/swarm/pulls/comments/36498581","id":36498581,"diff_hunk":"@@ -19,6 +19,9 @@\n #include <boost/bind.hpp>\n #include <iostream>\n \n+#include <boost/spirit/include/karma.hpp>\n+#include <boost/fusion/include/std_pair.hpp>","path":"thevoid/connection.cpp","position":5,"original_position":5,"commit_id":"d280f41f8ce6bbc051324e10016fe5f8f1d2475f","original_commit_id":"d280f41f8ce6bbc051324e10016fe5f8f1d2475f","user":{"login":"shindo","id":863752,"avatar_url":"https://avatars.githubusercontent.com/u/863752?v=3","gravatar_id":"","url":"https://api.github.com/users/shindo","html_url":"https://github.com/shindo","followers_url":"https://api.github.com/users/shindo/followers","following_url":"https://api.github.com/users/shindo/following{/other_user}","gists_url":"https://api.github.com/users/shindo/gists{/gist_id}","starred_url":"https://api.github.com/users/shindo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shindo/subscriptions","organizations_url":"https://api.github.com/users/shindo/orgs","repos_url":"https://api.github.com/users/shindo/repos","events_url":"https://api.github.com/users/shindo/events{/privacy}","received_events_url":"https://api.github.com/users/shindo/received_events","type":"User","site_admin":false},"body":"I use Boost.Spirit mainly to escape header's value that may contain nearly any characters (and I definitely don't want to code it by myself).\r\n\r\nRelated Karma example: http://boost-spirit.com/home/articles/karma-examples/generate-escaped-string-output-using-spirit-karma/comment-page-1/\r\n\r\nProbably it's better to use Boost.Spirit to just dump header's value and all other formatting by myself.","created_at":"2015-08-07T08:06:15Z","updated_at":"2015-08-07T08:06:15Z","html_url":"https://github.com/reverbrain/swarm/pull/59#discussion_r36498581","pull_request_url":"https://api.github.com/repos/reverbrain/swarm/pulls/59","_links":{"self":{"href":"https://api.github.com/repos/reverbrain/swarm/pulls/comments/36498581"},"html":{"href":"https://github.com/reverbrain/swarm/pull/59#discussion_r36498581"},"pull_request":{"href":"https://api.github.com/repos/reverbrain/swarm/pulls/59"}}},"pull_request":{"url":"https://api.github.com/repos/reverbrain/swarm/pulls/59","id":41768696,"html_url":"https://github.com/reverbrain/swarm/pull/59","diff_url":"https://github.com/reverbrain/swarm/pull/59.diff","patch_url":"https://github.com/reverbrain/swarm/pull/59.patch","issue_url":"https://api.github.com/repos/reverbrain/swarm/issues/59","number":59,"state":"open","locked":false,"title":"Rework request's logs","user":{"login":"shindo","id":863752,"avatar_url":"https://avatars.githubusercontent.com/u/863752?v=3","gravatar_id":"","url":"https://api.github.com/users/shindo","html_url":"https://github.com/shindo","followers_url":"https://api.github.com/users/shindo/followers","following_url":"https://api.github.com/users/shindo/following{/other_user}","gists_url":"https://api.github.com/users/shindo/gists{/gist_id}","starred_url":"https://api.github.com/users/shindo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shindo/subscriptions","organizations_url":"https://api.github.com/users/shindo/orgs","repos_url":"https://api.github.com/users/shindo/repos","events_url":"https://api.github.com/users/shindo/events{/privacy}","received_events_url":"https://api.github.com/users/shindo/received_events","type":"User","site_admin":false},"body":"Adds log line with received new request's information, that includes:\r\n- HTTP method\r\n- URL\r\n- local and remote endpoints\r\n- headers in form of {\"Header1: Value1\", \"Header2: Value2\", ...}, values are escaped\r\n\r\nThe log line is printed on INFO log level.","created_at":"2015-08-06T09:36:18Z","updated_at":"2015-08-07T08:06:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"010a177905c07b02d13f6b93cb42fbba81674b88","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/reverbrain/swarm/pulls/59/commits","review_comments_url":"https://api.github.com/repos/reverbrain/swarm/pulls/59/comments","review_comment_url":"https://api.github.com/repos/reverbrain/swarm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/reverbrain/swarm/issues/59/comments","statuses_url":"https://api.github.com/repos/reverbrain/swarm/statuses/d280f41f8ce6bbc051324e10016fe5f8f1d2475f","head":{"label":"shindo:pull-request-log","ref":"pull-request-log","sha":"d280f41f8ce6bbc051324e10016fe5f8f1d2475f","user":{"login":"shindo","id":863752,"avatar_url":"https://avatars.githubusercontent.com/u/863752?v=3","gravatar_id":"","url":"https://api.github.com/users/shindo","html_url":"https://github.com/shindo","followers_url":"https://api.github.com/users/shindo/followers","following_url":"https://api.github.com/users/shindo/following{/other_user}","gists_url":"https://api.github.com/users/shindo/gists{/gist_id}","starred_url":"https://api.github.com/users/shindo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shindo/subscriptions","organizations_url":"https://api.github.com/users/shindo/orgs","repos_url":"https://api.github.com/users/shindo/repos","events_url":"https://api.github.com/users/shindo/events{/privacy}","received_events_url":"https://api.github.com/users/shindo/received_events","type":"User","site_admin":false},"repo":{"id":23220802,"name":"swarm","full_name":"shindo/swarm","owner":{"login":"shindo","id":863752,"avatar_url":"https://avatars.githubusercontent.com/u/863752?v=3","gravatar_id":"","url":"https://api.github.com/users/shindo","html_url":"https://github.com/shindo","followers_url":"https://api.github.com/users/shindo/followers","following_url":"https://api.github.com/users/shindo/following{/other_user}","gists_url":"https://api.github.com/users/shindo/gists{/gist_id}","starred_url":"https://api.github.com/users/shindo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shindo/subscriptions","organizations_url":"https://api.github.com/users/shindo/orgs","repos_url":"https://api.github.com/users/shindo/repos","events_url":"https://api.github.com/users/shindo/events{/privacy}","received_events_url":"https://api.github.com/users/shindo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shindo/swarm","description":"Swarm is aiming at your web","fork":true,"url":"https://api.github.com/repos/shindo/swarm","forks_url":"https://api.github.com/repos/shindo/swarm/forks","keys_url":"https://api.github.com/repos/shindo/swarm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shindo/swarm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shindo/swarm/teams","hooks_url":"https://api.github.com/repos/shindo/swarm/hooks","issue_events_url":"https://api.github.com/repos/shindo/swarm/issues/events{/number}","events_url":"https://api.github.com/repos/shindo/swarm/events","assignees_url":"https://api.github.com/repos/shindo/swarm/assignees{/user}","branches_url":"https://api.github.com/repos/shindo/swarm/branches{/branch}","tags_url":"https://api.github.com/repos/shindo/swarm/tags","blobs_url":"https://api.github.com/repos/shindo/swarm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shindo/swarm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shindo/swarm/git/refs{/sha}","trees_url":"https://api.github.com/repos/shindo/swarm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shindo/swarm/statuses/{sha}","languages_url":"https://api.github.com/repos/shindo/swarm/languages","stargazers_url":"https://api.github.com/repos/shindo/swarm/stargazers","contributors_url":"https://api.github.com/repos/shindo/swarm/contributors","subscribers_url":"https://api.github.com/repos/shindo/swarm/subscribers","subscription_url":"https://api.github.com/repos/shindo/swarm/subscription","commits_url":"https://api.github.com/repos/shindo/swarm/commits{/sha}","git_commits_url":"https://api.github.com/repos/shindo/swarm/git/commits{/sha}","comments_url":"https://api.github.com/repos/shindo/swarm/comments{/number}","issue_comment_url":"https://api.github.com/repos/shindo/swarm/issues/comments{/number}","contents_url":"https://api.github.com/repos/shindo/swarm/contents/{+path}","compare_url":"https://api.github.com/repos/shindo/swarm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shindo/swarm/merges","archive_url":"https://api.github.com/repos/shindo/swarm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shindo/swarm/downloads","issues_url":"https://api.github.com/repos/shindo/swarm/issues{/number}","pulls_url":"https://api.github.com/repos/shindo/swarm/pulls{/number}","milestones_url":"https://api.github.com/repos/shindo/swarm/milestones{/number}","notifications_url":"https://api.github.com/repos/shindo/swarm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shindo/swarm/labels{/name}","releases_url":"https://api.github.com/repos/shindo/swarm/releases{/id}","created_at":"2014-08-22T09:52:08Z","updated_at":"2015-04-08T17:01:14Z","pushed_at":"2015-08-06T16:54:04Z","git_url":"git://github.com/shindo/swarm.git","ssh_url":"git@github.com:shindo/swarm.git","clone_url":"https://github.com/shindo/swarm.git","svn_url":"https://github.com/shindo/swarm","homepage":null,"size":2255,"stargazers_count":0,"watchers_count":0,"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":0,"default_branch":"master"}},"base":{"label":"reverbrain:master","ref":"master","sha":"1f3ae00f0d83221e4d8fbe8c5786827a2f69288c","user":{"login":"reverbrain","id":1616511,"avatar_url":"https://avatars.githubusercontent.com/u/1616511?v=3","gravatar_id":"","url":"https://api.github.com/users/reverbrain","html_url":"https://github.com/reverbrain","followers_url":"https://api.github.com/users/reverbrain/followers","following_url":"https://api.github.com/users/reverbrain/following{/other_user}","gists_url":"https://api.github.com/users/reverbrain/gists{/gist_id}","starred_url":"https://api.github.com/users/reverbrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reverbrain/subscriptions","organizations_url":"https://api.github.com/users/reverbrain/orgs","repos_url":"https://api.github.com/users/reverbrain/repos","events_url":"https://api.github.com/users/reverbrain/events{/privacy}","received_events_url":"https://api.github.com/users/reverbrain/received_events","type":"Organization","site_admin":false},"repo":{"id":8936566,"name":"swarm","full_name":"reverbrain/swarm","owner":{"login":"reverbrain","id":1616511,"avatar_url":"https://avatars.githubusercontent.com/u/1616511?v=3","gravatar_id":"","url":"https://api.github.com/users/reverbrain","html_url":"https://github.com/reverbrain","followers_url":"https://api.github.com/users/reverbrain/followers","following_url":"https://api.github.com/users/reverbrain/following{/other_user}","gists_url":"https://api.github.com/users/reverbrain/gists{/gist_id}","starred_url":"https://api.github.com/users/reverbrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reverbrain/subscriptions","organizations_url":"https://api.github.com/users/reverbrain/orgs","repos_url":"https://api.github.com/users/reverbrain/repos","events_url":"https://api.github.com/users/reverbrain/events{/privacy}","received_events_url":"https://api.github.com/users/reverbrain/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/reverbrain/swarm","description":"Swarm is aiming at your web","fork":false,"url":"https://api.github.com/repos/reverbrain/swarm","forks_url":"https://api.github.com/repos/reverbrain/swarm/forks","keys_url":"https://api.github.com/repos/reverbrain/swarm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/reverbrain/swarm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/reverbrain/swarm/teams","hooks_url":"https://api.github.com/repos/reverbrain/swarm/hooks","issue_events_url":"https://api.github.com/repos/reverbrain/swarm/issues/events{/number}","events_url":"https://api.github.com/repos/reverbrain/swarm/events","assignees_url":"https://api.github.com/repos/reverbrain/swarm/assignees{/user}","branches_url":"https://api.github.com/repos/reverbrain/swarm/branches{/branch}","tags_url":"https://api.github.com/repos/reverbrain/swarm/tags","blobs_url":"https://api.github.com/repos/reverbrain/swarm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/reverbrain/swarm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/reverbrain/swarm/git/refs{/sha}","trees_url":"https://api.github.com/repos/reverbrain/swarm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/reverbrain/swarm/statuses/{sha}","languages_url":"https://api.github.com/repos/reverbrain/swarm/languages","stargazers_url":"https://api.github.com/repos/reverbrain/swarm/stargazers","contributors_url":"https://api.github.com/repos/reverbrain/swarm/contributors","subscribers_url":"https://api.github.com/repos/reverbrain/swarm/subscribers","subscription_url":"https://api.github.com/repos/reverbrain/swarm/subscription","commits_url":"https://api.github.com/repos/reverbrain/swarm/commits{/sha}","git_commits_url":"https://api.github.com/repos/reverbrain/swarm/git/commits{/sha}","comments_url":"https://api.github.com/repos/reverbrain/swarm/comments{/number}","issue_comment_url":"https://api.github.com/repos/reverbrain/swarm/issues/comments{/number}","contents_url":"https://api.github.com/repos/reverbrain/swarm/contents/{+path}","compare_url":"https://api.github.com/repos/reverbrain/swarm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/reverbrain/swarm/merges","archive_url":"https://api.github.com/repos/reverbrain/swarm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/reverbrain/swarm/downloads","issues_url":"https://api.github.com/repos/reverbrain/swarm/issues{/number}","pulls_url":"https://api.github.com/repos/reverbrain/swarm/pulls{/number}","milestones_url":"https://api.github.com/repos/reverbrain/swarm/milestones{/number}","notifications_url":"https://api.github.com/repos/reverbrain/swarm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/reverbrain/swarm/labels{/name}","releases_url":"https://api.github.com/repos/reverbrain/swarm/releases{/id}","created_at":"2013-03-21T19:13:26Z","updated_at":"2015-08-05T15:36:42Z","pushed_at":"2015-08-06T23:40:22Z","git_url":"git://github.com/reverbrain/swarm.git","ssh_url":"git@github.com:reverbrain/swarm.git","clone_url":"https://github.com/reverbrain/swarm.git","svn_url":"https://github.com/reverbrain/swarm","homepage":null,"size":2636,"stargazers_count":18,"watchers_count":18,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":8,"forks":14,"open_issues":8,"watchers":18,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/reverbrain/swarm/pulls/59"},"html":{"href":"https://github.com/reverbrain/swarm/pull/59"},"issue":{"href":"https://api.github.com/repos/reverbrain/swarm/issues/59"},"comments":{"href":"https://api.github.com/repos/reverbrain/swarm/issues/59/comments"},"review_comments":{"href":"https://api.github.com/repos/reverbrain/swarm/pulls/59/comments"},"review_comment":{"href":"https://api.github.com/repos/reverbrain/swarm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/reverbrain/swarm/pulls/59/commits"},"statuses":{"href":"https://api.github.com/repos/reverbrain/swarm/statuses/d280f41f8ce6bbc051324e10016fe5f8f1d2475f"}}}}