{"action":"created","comment":{"url":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/pulls/comments/79904933","id":79904933,"diff_hunk":"@@ -0,0 +1,48 @@\n+'use strict';\n+\n+const http = require('http');\n+const url = require('url');\n+const cowsay = require('cowsay');\n+const parseBody = require('./lib/parse-body.js');\n+const queryString = require('querystring');\n+const PORT = process.env.PORT || 3000;\n+\n+http.createServer(function(req, res) {\n+  req.url = url.parse(req.url);\n+  req.url.query = queryString.parse(req.url.query);\n+  console.log(req.url.query.text);\n+  console.log(req.method);\n+\n+  if (req.url === '/'){\n+    res.writeHead('200', {'Content-Type': 'text/plain'});\n+    res.write('hello world');\n+    res.end();\n+  }\n+\n+  if (req.url.pathname === '/cowsay') {\n+    switch(req.method){","path":"lab-adam/server.js","position":23,"original_position":23,"commit_id":"b00bf56fe9c020417610036ceae3919c16b8af64","original_commit_id":"b00bf56fe9c020417610036ceae3919c16b8af64","user":{"login":"stefuhnee","id":13180311,"avatar_url":"https://avatars.githubusercontent.com/u/13180311?v=3","gravatar_id":"","url":"https://api.github.com/users/stefuhnee","html_url":"https://github.com/stefuhnee","followers_url":"https://api.github.com/users/stefuhnee/followers","following_url":"https://api.github.com/users/stefuhnee/following{/other_user}","gists_url":"https://api.github.com/users/stefuhnee/gists{/gist_id}","starred_url":"https://api.github.com/users/stefuhnee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefuhnee/subscriptions","organizations_url":"https://api.github.com/users/stefuhnee/orgs","repos_url":"https://api.github.com/users/stefuhnee/repos","events_url":"https://api.github.com/users/stefuhnee/events{/privacy}","received_events_url":"https://api.github.com/users/stefuhnee/received_events","type":"User","site_admin":false},"body":"Cool way of handling this! ","created_at":"2016-09-21T18:47:47Z","updated_at":"2016-09-21T18:50:54Z","html_url":"https://github.com/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/pull/9#discussion_r79904933","pull_request_url":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/pulls/comments/79904933"},"html":{"href":"https://github.com/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/pull/9#discussion_r79904933"},"pull_request":{"href":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/pulls/9","id":86099668,"html_url":"https://github.com/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/pull/9","diff_url":"https://github.com/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/pull/9.diff","patch_url":"https://github.com/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/pull/9.patch","issue_url":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/issues/9","number":9,"state":"open","locked":false,"title":"Assignment submission lab #7","user":{"login":"adamstelle","id":546314,"avatar_url":"https://avatars.githubusercontent.com/u/546314?v=3","gravatar_id":"","url":"https://api.github.com/users/adamstelle","html_url":"https://github.com/adamstelle","followers_url":"https://api.github.com/users/adamstelle/followers","following_url":"https://api.github.com/users/adamstelle/following{/other_user}","gists_url":"https://api.github.com/users/adamstelle/gists{/gist_id}","starred_url":"https://api.github.com/users/adamstelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamstelle/subscriptions","organizations_url":"https://api.github.com/users/adamstelle/orgs","repos_url":"https://api.github.com/users/adamstelle/repos","events_url":"https://api.github.com/users/adamstelle/events{/privacy}","received_events_url":"https://api.github.com/users/adamstelle/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-21T05:23:09Z","updated_at":"2016-09-21T18:50:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"901d26f7bb450c027f5dea6f126f580893b69077","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/pulls/9/commits","review_comments_url":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/pulls/9/comments","review_comment_url":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/issues/9/comments","statuses_url":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/statuses/b00bf56fe9c020417610036ceae3919c16b8af64","head":{"label":"adamstelle:master","ref":"master","sha":"b00bf56fe9c020417610036ceae3919c16b8af64","user":{"login":"adamstelle","id":546314,"avatar_url":"https://avatars.githubusercontent.com/u/546314?v=3","gravatar_id":"","url":"https://api.github.com/users/adamstelle","html_url":"https://github.com/adamstelle","followers_url":"https://api.github.com/users/adamstelle/followers","following_url":"https://api.github.com/users/adamstelle/following{/other_user}","gists_url":"https://api.github.com/users/adamstelle/gists{/gist_id}","starred_url":"https://api.github.com/users/adamstelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamstelle/subscriptions","organizations_url":"https://api.github.com/users/adamstelle/orgs","repos_url":"https://api.github.com/users/adamstelle/repos","events_url":"https://api.github.com/users/adamstelle/events{/privacy}","received_events_url":"https://api.github.com/users/adamstelle/received_events","type":"User","site_admin":false},"repo":{"id":68748609,"name":"lab-07-cowsay-http-server","full_name":"adamstelle/lab-07-cowsay-http-server","owner":{"login":"adamstelle","id":546314,"avatar_url":"https://avatars.githubusercontent.com/u/546314?v=3","gravatar_id":"","url":"https://api.github.com/users/adamstelle","html_url":"https://github.com/adamstelle","followers_url":"https://api.github.com/users/adamstelle/followers","following_url":"https://api.github.com/users/adamstelle/following{/other_user}","gists_url":"https://api.github.com/users/adamstelle/gists{/gist_id}","starred_url":"https://api.github.com/users/adamstelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamstelle/subscriptions","organizations_url":"https://api.github.com/users/adamstelle/orgs","repos_url":"https://api.github.com/users/adamstelle/repos","events_url":"https://api.github.com/users/adamstelle/events{/privacy}","received_events_url":"https://api.github.com/users/adamstelle/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/adamstelle/lab-07-cowsay-http-server","description":"lab-07-cowsay-http-server","fork":true,"url":"https://api.github.com/repos/adamstelle/lab-07-cowsay-http-server","forks_url":"https://api.github.com/repos/adamstelle/lab-07-cowsay-http-server/forks","keys_url":"https://api.github.com/repos/adamstelle/lab-07-cowsay-http-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/adamstelle/lab-07-cowsay-http-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/adamstelle/lab-07-cowsay-http-server/teams","hooks_url":"https://api.github.com/repos/adamstelle/lab-07-cowsay-http-server/hooks","issue_events_url":"https://api.github.com/repos/adamstelle/lab-07-cowsay-http-server/issues/events{/number}","events_url":"https://api.github.com/repos/adamstelle/lab-07-cowsay-http-server/events","assignees_url":"https://api.github.com/repos/adamstelle/lab-07-cowsay-http-server/assignees{/user}","branches_url":"https://api.github.com/repos/adamstelle/lab-07-cowsay-http-server/branches{/branch}","tags_url":"https://api.github.com/repos/adamstelle/lab-07-cowsay-http-server/tags","blobs_url":"https://api.github.com/repos/adamstelle/lab-07-cowsay-http-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/adamstelle/lab-07-cowsay-http-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/adamstelle/lab-07-cowsay-http-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/adamstelle/lab-07-cowsay-http-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/adamstelle/lab-07-cowsay-http-server/statuses/{sha}","languages_url":"https://api.github.com/repos/adamstelle/lab-07-cowsay-http-server/languages","stargazers_url":"https://api.github.com/repos/adamstelle/lab-07-cowsay-http-server/stargazers","contributors_url":"https://api.github.com/repos/adamstelle/lab-07-cowsay-http-server/contributors","subscribers_url":"https://api.github.com/repos/adamstelle/lab-07-cowsay-http-server/subscribers","subscription_url":"https://api.github.com/repos/adamstelle/lab-07-cowsay-http-server/subscription","commits_url":"https://api.github.com/repos/adamstelle/lab-07-cowsay-http-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/adamstelle/lab-07-cowsay-http-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/adamstelle/lab-07-cowsay-http-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/adamstelle/lab-07-cowsay-http-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/adamstelle/lab-07-cowsay-http-server/contents/{+path}","compare_url":"https://api.github.com/repos/adamstelle/lab-07-cowsay-http-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/adamstelle/lab-07-cowsay-http-server/merges","archive_url":"https://api.github.com/repos/adamstelle/lab-07-cowsay-http-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/adamstelle/lab-07-cowsay-http-server/downloads","issues_url":"https://api.github.com/repos/adamstelle/lab-07-cowsay-http-server/issues{/number}","pulls_url":"https://api.github.com/repos/adamstelle/lab-07-cowsay-http-server/pulls{/number}","milestones_url":"https://api.github.com/repos/adamstelle/lab-07-cowsay-http-server/milestones{/number}","notifications_url":"https://api.github.com/repos/adamstelle/lab-07-cowsay-http-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/adamstelle/lab-07-cowsay-http-server/labels{/name}","releases_url":"https://api.github.com/repos/adamstelle/lab-07-cowsay-http-server/releases{/id}","deployments_url":"https://api.github.com/repos/adamstelle/lab-07-cowsay-http-server/deployments","created_at":"2016-09-20T19:59:29Z","updated_at":"2016-09-21T05:22:42Z","pushed_at":"2016-09-21T05:22:40Z","git_url":"git://github.com/adamstelle/lab-07-cowsay-http-server.git","ssh_url":"git@github.com:adamstelle/lab-07-cowsay-http-server.git","clone_url":"https://github.com/adamstelle/lab-07-cowsay-http-server.git","svn_url":"https://github.com/adamstelle/lab-07-cowsay-http-server","homepage":null,"size":4,"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":"codefellows-seattle-javascript-401d10:master","ref":"master","sha":"b691856e113df9afb885bad44f39ac0a8340620e","user":{"login":"codefellows-seattle-javascript-401d10","id":22157216,"avatar_url":"https://avatars.githubusercontent.com/u/22157216?v=3","gravatar_id":"","url":"https://api.github.com/users/codefellows-seattle-javascript-401d10","html_url":"https://github.com/codefellows-seattle-javascript-401d10","followers_url":"https://api.github.com/users/codefellows-seattle-javascript-401d10/followers","following_url":"https://api.github.com/users/codefellows-seattle-javascript-401d10/following{/other_user}","gists_url":"https://api.github.com/users/codefellows-seattle-javascript-401d10/gists{/gist_id}","starred_url":"https://api.github.com/users/codefellows-seattle-javascript-401d10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codefellows-seattle-javascript-401d10/subscriptions","organizations_url":"https://api.github.com/users/codefellows-seattle-javascript-401d10/orgs","repos_url":"https://api.github.com/users/codefellows-seattle-javascript-401d10/repos","events_url":"https://api.github.com/users/codefellows-seattle-javascript-401d10/events{/privacy}","received_events_url":"https://api.github.com/users/codefellows-seattle-javascript-401d10/received_events","type":"Organization","site_admin":false},"repo":{"id":68745994,"name":"lab-07-cowsay-http-server","full_name":"codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server","owner":{"login":"codefellows-seattle-javascript-401d10","id":22157216,"avatar_url":"https://avatars.githubusercontent.com/u/22157216?v=3","gravatar_id":"","url":"https://api.github.com/users/codefellows-seattle-javascript-401d10","html_url":"https://github.com/codefellows-seattle-javascript-401d10","followers_url":"https://api.github.com/users/codefellows-seattle-javascript-401d10/followers","following_url":"https://api.github.com/users/codefellows-seattle-javascript-401d10/following{/other_user}","gists_url":"https://api.github.com/users/codefellows-seattle-javascript-401d10/gists{/gist_id}","starred_url":"https://api.github.com/users/codefellows-seattle-javascript-401d10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codefellows-seattle-javascript-401d10/subscriptions","organizations_url":"https://api.github.com/users/codefellows-seattle-javascript-401d10/orgs","repos_url":"https://api.github.com/users/codefellows-seattle-javascript-401d10/repos","events_url":"https://api.github.com/users/codefellows-seattle-javascript-401d10/events{/privacy}","received_events_url":"https://api.github.com/users/codefellows-seattle-javascript-401d10/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server","description":"lab-07-cowsay-http-server","fork":false,"url":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server","forks_url":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/forks","keys_url":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/teams","hooks_url":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/hooks","issue_events_url":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/issues/events{/number}","events_url":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/events","assignees_url":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/assignees{/user}","branches_url":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/branches{/branch}","tags_url":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/tags","blobs_url":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/statuses/{sha}","languages_url":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/languages","stargazers_url":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/stargazers","contributors_url":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/contributors","subscribers_url":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/subscribers","subscription_url":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/subscription","commits_url":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/contents/{+path}","compare_url":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/merges","archive_url":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/downloads","issues_url":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/issues{/number}","pulls_url":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/pulls{/number}","milestones_url":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/milestones{/number}","notifications_url":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/labels{/name}","releases_url":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/releases{/id}","deployments_url":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/deployments","created_at":"2016-09-20T19:28:04Z","updated_at":"2016-09-20T19:29:15Z","pushed_at":"2016-09-21T16:22:42Z","git_url":"git://github.com/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server.git","ssh_url":"git@github.com:codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server.git","clone_url":"https://github.com/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server.git","svn_url":"https://github.com/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server","homepage":null,"size":3,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":11,"forks":11,"open_issues":11,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/pulls/9"},"html":{"href":"https://github.com/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/pull/9"},"issue":{"href":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/issues/9"},"comments":{"href":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/codefellows-seattle-javascript-401d10/lab-07-cowsay-http-server/statuses/b00bf56fe9c020417610036ceae3919c16b8af64"}}}}
{"actor":{"display_login":"stefuhnee"}}