{"action":"created","issue":{"url":"https://api.github.com/repos/AliSoftware/OHHTTPStubs/issues/166","repository_url":"https://api.github.com/repos/AliSoftware/OHHTTPStubs","labels_url":"https://api.github.com/repos/AliSoftware/OHHTTPStubs/issues/166/labels{/name}","comments_url":"https://api.github.com/repos/AliSoftware/OHHTTPStubs/issues/166/comments","events_url":"https://api.github.com/repos/AliSoftware/OHHTTPStubs/issues/166/events","html_url":"https://github.com/AliSoftware/OHHTTPStubs/pull/166","id":144851046,"number":166,"title":"Adds support for HTTPBody during testing when using NSURLSession","user":{"login":"felixLam","id":1178566,"avatar_url":"https://avatars.githubusercontent.com/u/1178566?v=3","gravatar_id":"","url":"https://api.github.com/users/felixLam","html_url":"https://github.com/felixLam","followers_url":"https://api.github.com/users/felixLam/followers","following_url":"https://api.github.com/users/felixLam/following{/other_user}","gists_url":"https://api.github.com/users/felixLam/gists{/gist_id}","starred_url":"https://api.github.com/users/felixLam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felixLam/subscriptions","organizations_url":"https://api.github.com/users/felixLam/orgs","repos_url":"https://api.github.com/users/felixLam/repos","events_url":"https://api.github.com/users/felixLam/events{/privacy}","received_events_url":"https://api.github.com/users/felixLam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-03-31T10:06:59Z","updated_at":"2016-05-21T08:10:34Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/AliSoftware/OHHTTPStubs/pulls/166","html_url":"https://github.com/AliSoftware/OHHTTPStubs/pull/166","diff_url":"https://github.com/AliSoftware/OHHTTPStubs/pull/166.diff","patch_url":"https://github.com/AliSoftware/OHHTTPStubs/pull/166.patch"},"body":"This addresses the issue described in https://github.com/AliSoftware/OHHTTPStubs/wiki/Testing-for-the-request-body-in-your-stubs and #52 \r\n\r\nIt also avoids unnecessary changes to the code under test as the setter and getter for `HTTPBody` can still be used without change in behavior (as far as one can tell). \r\n\r\nThe new getter `-[NSURLRequest OHHTTPStubs_HTTPBody]` can be used in your `[OHHTTPStubs stubRequestsPassingTest:withStubResponse:]` to test the `HTTPBody`.\r\n\r\nOne known issue is that if you set the HTTPBody and later reset it to nil (for whatever reason),`OHHTTPStubs_HTTPBody` will still return the last non-nil value.   \r\n\r\nThanks to @shagedorn for the help on method swizzling."},"comment":{"url":"https://api.github.com/repos/AliSoftware/OHHTTPStubs/issues/comments/220765260","html_url":"https://github.com/AliSoftware/OHHTTPStubs/pull/166#issuecomment-220765260","issue_url":"https://api.github.com/repos/AliSoftware/OHHTTPStubs/issues/166","id":220765260,"user":{"login":"shagedorn","id":462183,"avatar_url":"https://avatars.githubusercontent.com/u/462183?v=3","gravatar_id":"","url":"https://api.github.com/users/shagedorn","html_url":"https://github.com/shagedorn","followers_url":"https://api.github.com/users/shagedorn/followers","following_url":"https://api.github.com/users/shagedorn/following{/other_user}","gists_url":"https://api.github.com/users/shagedorn/gists{/gist_id}","starred_url":"https://api.github.com/users/shagedorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shagedorn/subscriptions","organizations_url":"https://api.github.com/users/shagedorn/orgs","repos_url":"https://api.github.com/users/shagedorn/repos","events_url":"https://api.github.com/users/shagedorn/events{/privacy}","received_events_url":"https://api.github.com/users/shagedorn/received_events","type":"User","site_admin":false},"created_at":"2016-05-21T08:10:34Z","updated_at":"2016-05-21T08:10:34Z","body":"Sorry about the delay, we had a busy week and @felixLam was on holidays. We'll tackle it next week!"}}
{"actor":{"display_login":"shagedorn"}}