{"action":"created","comment":{"url":"https://api.github.com/repos/Azure/go-autorest/pulls/comments/40836180","id":40836180,"diff_hunk":"@@ -135,3 +142,22 @@ func WithErrorUnlessStatusCode(codes ...int) RespondDecorator {\n func WithErrorUnlessOK() RespondDecorator {\n \treturn WithErrorUnlessStatusCode(http.StatusOK)\n }\n+\n+// ExtractHeader extracts all values of the specified header from the http.Response. It returns an\n+// empty string slice if the passed http.Response is nil or the header does not exist.\n+func ExtractHeader(header string, resp *http.Response) []string {","path":"autorest/responder.go","position":32,"original_position":32,"commit_id":"3e0cc006001cc6f36c624627dcc7753ae917736d","original_commit_id":"3e0cc006001cc6f36c624627dcc7753ae917736d","user":{"login":"ahmetalpbalkan","id":159209,"avatar_url":"https://avatars.githubusercontent.com/u/159209?v=3","gravatar_id":"","url":"https://api.github.com/users/ahmetalpbalkan","html_url":"https://github.com/ahmetalpbalkan","followers_url":"https://api.github.com/users/ahmetalpbalkan/followers","following_url":"https://api.github.com/users/ahmetalpbalkan/following{/other_user}","gists_url":"https://api.github.com/users/ahmetalpbalkan/gists{/gist_id}","starred_url":"https://api.github.com/users/ahmetalpbalkan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahmetalpbalkan/subscriptions","organizations_url":"https://api.github.com/users/ahmetalpbalkan/orgs","repos_url":"https://api.github.com/users/ahmetalpbalkan/repos","events_url":"https://api.github.com/users/ahmetalpbalkan/events{/privacy}","received_events_url":"https://api.github.com/users/ahmetalpbalkan/received_events","type":"User","site_admin":false},"body":"umm, not really. nil slice behaves exactly like empty slice if you're trying to append, len() and such.","created_at":"2015-09-30T18:59:28Z","updated_at":"2015-09-30T18:59:28Z","html_url":"https://github.com/Azure/go-autorest/pull/3#discussion_r40836180","pull_request_url":"https://api.github.com/repos/Azure/go-autorest/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/Azure/go-autorest/pulls/comments/40836180"},"html":{"href":"https://github.com/Azure/go-autorest/pull/3#discussion_r40836180"},"pull_request":{"href":"https://api.github.com/repos/Azure/go-autorest/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/Azure/go-autorest/pulls/3","id":46439258,"html_url":"https://github.com/Azure/go-autorest/pull/3","diff_url":"https://github.com/Azure/go-autorest/pull/3.diff","patch_url":"https://github.com/Azure/go-autorest/pull/3.patch","issue_url":"https://api.github.com/repos/Azure/go-autorest/issues/3","number":3,"state":"open","locked":false,"title":"-- Added Logging inspectors to trace http.Request / Response","user":{"login":"brendandixon","id":305205,"avatar_url":"https://avatars.githubusercontent.com/u/305205?v=3","gravatar_id":"","url":"https://api.github.com/users/brendandixon","html_url":"https://github.com/brendandixon","followers_url":"https://api.github.com/users/brendandixon/followers","following_url":"https://api.github.com/users/brendandixon/following{/other_user}","gists_url":"https://api.github.com/users/brendandixon/gists{/gist_id}","starred_url":"https://api.github.com/users/brendandixon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brendandixon/subscriptions","organizations_url":"https://api.github.com/users/brendandixon/orgs","repos_url":"https://api.github.com/users/brendandixon/repos","events_url":"https://api.github.com/users/brendandixon/events{/privacy}","received_events_url":"https://api.github.com/users/brendandixon/received_events","type":"User","site_admin":false},"body":"- Added support for User-Agent header\r\n- Changed WithHeader PrepareDecorator to use set vs. add\r\n- Added JSON to error when unmarshalling fails\r\n-Added Client#Send method\r\n- Corrected case of \"Azure\" in package paths\r\n- Added convert helpers, Azure helpers, and improved ease-of-use\r\n- Corrected golint issues\r\n\r\nSigned-off-by: Brendan Dixon <brendand@microsoft.com>","created_at":"2015-09-30T18:36:06Z","updated_at":"2015-09-30T18:59:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e2512f2d5484a3411d71e0d94a99794ebe443aa9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Azure/go-autorest/pulls/3/commits","review_comments_url":"https://api.github.com/repos/Azure/go-autorest/pulls/3/comments","review_comment_url":"https://api.github.com/repos/Azure/go-autorest/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Azure/go-autorest/issues/3/comments","statuses_url":"https://api.github.com/repos/Azure/go-autorest/statuses/3e0cc006001cc6f36c624627dcc7753ae917736d","head":{"label":"Azure:v1.0.0","ref":"v1.0.0","sha":"3e0cc006001cc6f36c624627dcc7753ae917736d","user":{"login":"Azure","id":6844498,"avatar_url":"https://avatars.githubusercontent.com/u/6844498?v=3","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"repo":{"id":39398382,"name":"go-autorest","full_name":"Azure/go-autorest","owner":{"login":"Azure","id":6844498,"avatar_url":"https://avatars.githubusercontent.com/u/6844498?v=3","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Azure/go-autorest","description":"This package implements an HTTP request pipeline suitable for use across multiple go-routines and provides the shared routines relied on by AutoRest (see https://github.com/Azure/autorest/) generated Go code.","fork":false,"url":"https://api.github.com/repos/Azure/go-autorest","forks_url":"https://api.github.com/repos/Azure/go-autorest/forks","keys_url":"https://api.github.com/repos/Azure/go-autorest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Azure/go-autorest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Azure/go-autorest/teams","hooks_url":"https://api.github.com/repos/Azure/go-autorest/hooks","issue_events_url":"https://api.github.com/repos/Azure/go-autorest/issues/events{/number}","events_url":"https://api.github.com/repos/Azure/go-autorest/events","assignees_url":"https://api.github.com/repos/Azure/go-autorest/assignees{/user}","branches_url":"https://api.github.com/repos/Azure/go-autorest/branches{/branch}","tags_url":"https://api.github.com/repos/Azure/go-autorest/tags","blobs_url":"https://api.github.com/repos/Azure/go-autorest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Azure/go-autorest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Azure/go-autorest/git/refs{/sha}","trees_url":"https://api.github.com/repos/Azure/go-autorest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Azure/go-autorest/statuses/{sha}","languages_url":"https://api.github.com/repos/Azure/go-autorest/languages","stargazers_url":"https://api.github.com/repos/Azure/go-autorest/stargazers","contributors_url":"https://api.github.com/repos/Azure/go-autorest/contributors","subscribers_url":"https://api.github.com/repos/Azure/go-autorest/subscribers","subscription_url":"https://api.github.com/repos/Azure/go-autorest/subscription","commits_url":"https://api.github.com/repos/Azure/go-autorest/commits{/sha}","git_commits_url":"https://api.github.com/repos/Azure/go-autorest/git/commits{/sha}","comments_url":"https://api.github.com/repos/Azure/go-autorest/comments{/number}","issue_comment_url":"https://api.github.com/repos/Azure/go-autorest/issues/comments{/number}","contents_url":"https://api.github.com/repos/Azure/go-autorest/contents/{+path}","compare_url":"https://api.github.com/repos/Azure/go-autorest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Azure/go-autorest/merges","archive_url":"https://api.github.com/repos/Azure/go-autorest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Azure/go-autorest/downloads","issues_url":"https://api.github.com/repos/Azure/go-autorest/issues{/number}","pulls_url":"https://api.github.com/repos/Azure/go-autorest/pulls{/number}","milestones_url":"https://api.github.com/repos/Azure/go-autorest/milestones{/number}","notifications_url":"https://api.github.com/repos/Azure/go-autorest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Azure/go-autorest/labels{/name}","releases_url":"https://api.github.com/repos/Azure/go-autorest/releases{/id}","created_at":"2015-07-20T17:33:08Z","updated_at":"2015-09-26T03:15:39Z","pushed_at":"2015-09-30T18:36:06Z","git_url":"git://github.com/Azure/go-autorest.git","ssh_url":"git@github.com:Azure/go-autorest.git","clone_url":"https://github.com/Azure/go-autorest.git","svn_url":"https://github.com/Azure/go-autorest","homepage":"","size":306,"stargazers_count":8,"watchers_count":8,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":8,"default_branch":"master"}},"base":{"label":"Azure:master","ref":"master","sha":"fe68acd234238c641b119b6132d750c6523cf608","user":{"login":"Azure","id":6844498,"avatar_url":"https://avatars.githubusercontent.com/u/6844498?v=3","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"repo":{"id":39398382,"name":"go-autorest","full_name":"Azure/go-autorest","owner":{"login":"Azure","id":6844498,"avatar_url":"https://avatars.githubusercontent.com/u/6844498?v=3","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Azure/go-autorest","description":"This package implements an HTTP request pipeline suitable for use across multiple go-routines and provides the shared routines relied on by AutoRest (see https://github.com/Azure/autorest/) generated Go code.","fork":false,"url":"https://api.github.com/repos/Azure/go-autorest","forks_url":"https://api.github.com/repos/Azure/go-autorest/forks","keys_url":"https://api.github.com/repos/Azure/go-autorest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Azure/go-autorest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Azure/go-autorest/teams","hooks_url":"https://api.github.com/repos/Azure/go-autorest/hooks","issue_events_url":"https://api.github.com/repos/Azure/go-autorest/issues/events{/number}","events_url":"https://api.github.com/repos/Azure/go-autorest/events","assignees_url":"https://api.github.com/repos/Azure/go-autorest/assignees{/user}","branches_url":"https://api.github.com/repos/Azure/go-autorest/branches{/branch}","tags_url":"https://api.github.com/repos/Azure/go-autorest/tags","blobs_url":"https://api.github.com/repos/Azure/go-autorest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Azure/go-autorest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Azure/go-autorest/git/refs{/sha}","trees_url":"https://api.github.com/repos/Azure/go-autorest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Azure/go-autorest/statuses/{sha}","languages_url":"https://api.github.com/repos/Azure/go-autorest/languages","stargazers_url":"https://api.github.com/repos/Azure/go-autorest/stargazers","contributors_url":"https://api.github.com/repos/Azure/go-autorest/contributors","subscribers_url":"https://api.github.com/repos/Azure/go-autorest/subscribers","subscription_url":"https://api.github.com/repos/Azure/go-autorest/subscription","commits_url":"https://api.github.com/repos/Azure/go-autorest/commits{/sha}","git_commits_url":"https://api.github.com/repos/Azure/go-autorest/git/commits{/sha}","comments_url":"https://api.github.com/repos/Azure/go-autorest/comments{/number}","issue_comment_url":"https://api.github.com/repos/Azure/go-autorest/issues/comments{/number}","contents_url":"https://api.github.com/repos/Azure/go-autorest/contents/{+path}","compare_url":"https://api.github.com/repos/Azure/go-autorest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Azure/go-autorest/merges","archive_url":"https://api.github.com/repos/Azure/go-autorest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Azure/go-autorest/downloads","issues_url":"https://api.github.com/repos/Azure/go-autorest/issues{/number}","pulls_url":"https://api.github.com/repos/Azure/go-autorest/pulls{/number}","milestones_url":"https://api.github.com/repos/Azure/go-autorest/milestones{/number}","notifications_url":"https://api.github.com/repos/Azure/go-autorest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Azure/go-autorest/labels{/name}","releases_url":"https://api.github.com/repos/Azure/go-autorest/releases{/id}","created_at":"2015-07-20T17:33:08Z","updated_at":"2015-09-26T03:15:39Z","pushed_at":"2015-09-30T18:36:06Z","git_url":"git://github.com/Azure/go-autorest.git","ssh_url":"git@github.com:Azure/go-autorest.git","clone_url":"https://github.com/Azure/go-autorest.git","svn_url":"https://github.com/Azure/go-autorest","homepage":"","size":306,"stargazers_count":8,"watchers_count":8,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Azure/go-autorest/pulls/3"},"html":{"href":"https://github.com/Azure/go-autorest/pull/3"},"issue":{"href":"https://api.github.com/repos/Azure/go-autorest/issues/3"},"comments":{"href":"https://api.github.com/repos/Azure/go-autorest/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/Azure/go-autorest/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/Azure/go-autorest/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Azure/go-autorest/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/Azure/go-autorest/statuses/3e0cc006001cc6f36c624627dcc7753ae917736d"}}}}