{"action":"created","issue":{"url":"https://api.github.com/repos/KnowSheet/Bricks/issues/39","labels_url":"https://api.github.com/repos/KnowSheet/Bricks/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/KnowSheet/Bricks/issues/39/comments","events_url":"https://api.github.com/repos/KnowSheet/Bricks/issues/39/events","html_url":"https://github.com/KnowSheet/Bricks/pull/39","id":53950744,"number":39,"title":"Example HTTP server syntax.","user":{"login":"dkorolev","id":2159447,"avatar_url":"https://avatars.githubusercontent.com/u/2159447?v=3","gravatar_id":"","url":"https://api.github.com/users/dkorolev","html_url":"https://github.com/dkorolev","followers_url":"https://api.github.com/users/dkorolev/followers","following_url":"https://api.github.com/users/dkorolev/following{/other_user}","gists_url":"https://api.github.com/users/dkorolev/gists{/gist_id}","starred_url":"https://api.github.com/users/dkorolev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkorolev/subscriptions","organizations_url":"https://api.github.com/users/dkorolev/orgs","repos_url":"https://api.github.com/users/dkorolev/repos","events_url":"https://api.github.com/users/dkorolev/events{/privacy}","received_events_url":"https://api.github.com/users/dkorolev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-10T07:59:08Z","updated_at":"2015-01-10T13:41:34Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/KnowSheet/Bricks/pulls/39","html_url":"https://github.com/KnowSheet/Bricks/pull/39","diff_url":"https://github.com/KnowSheet/Bricks/pull/39.diff","patch_url":"https://github.com/KnowSheet/Bricks/pull/39.patch"},"body":"Hi @sompylasar and @deathbaba,\r\n\r\nWhat do you think of a proposed HTTP server code syntax below?\r\n\r\nThanks,\r\nDima"},"comment":{"url":"https://api.github.com/repos/KnowSheet/Bricks/issues/comments/69456090","html_url":"https://github.com/KnowSheet/Bricks/pull/39#issuecomment-69456090","issue_url":"https://api.github.com/repos/KnowSheet/Bricks/issues/39","id":69456090,"user":{"login":"sompylasar","id":498274,"avatar_url":"https://avatars.githubusercontent.com/u/498274?v=3","gravatar_id":"","url":"https://api.github.com/users/sompylasar","html_url":"https://github.com/sompylasar","followers_url":"https://api.github.com/users/sompylasar/followers","following_url":"https://api.github.com/users/sompylasar/following{/other_user}","gists_url":"https://api.github.com/users/sompylasar/gists{/gist_id}","starred_url":"https://api.github.com/users/sompylasar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sompylasar/subscriptions","organizations_url":"https://api.github.com/users/sompylasar/orgs","repos_url":"https://api.github.com/users/sompylasar/repos","events_url":"https://api.github.com/users/sompylasar/events{/privacy}","received_events_url":"https://api.github.com/users/sompylasar/received_events","type":"User","site_admin":false},"created_at":"2015-01-10T13:41:34Z","updated_at":"2015-01-10T13:41:34Z","body":"In C++ the syntax would look like:\r\n\r\n```cpp\r\nExpressApi app;\r\n\r\nconst auto commonHandler = [](Request& req, Response& res) {\r\n    \r\n};\r\nconst auto onGetPath = [](Request& req, Response& res) {\r\n    assert(req.path == \"/path\");\r\n    res.write(\"OK\");\r\n};\r\n\r\napp.get(\"/path\", commonHandler, onGetPath);\r\n\r\n```\r\n"}}