From b0ff1ae961faad4868a050a5ca184a55a5bf0c6a Mon Sep 17 00:00:00 2001 From: Sunny Wang Date: Fri, 20 Nov 2015 07:20:49 -0500 Subject: [PATCH 1/3] Add link to recording tool SWHttpTrafficRecorder. --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 9cd607ac..60af6ec8 100644 --- a/README.md +++ b/README.md @@ -140,6 +140,8 @@ withBody([@"bar" dataUsingEncoding:NSUTF8StringEncoding]); #### Returning raw responses recorded with `curl -is` `curl -is http://api.example.com/dogs.json > /tmp/example_curl_-is_output.txt` +Or through tools such as [SWHttpTrafficRecorder](https://github.com/capitalone/SWHttpTrafficRecorder) which would recorded all raw responses used by an app while the app is accessed. + ```objc stubRequest(@"GET", @"https://api.example.com/dogs.json"). andReturnRawResponse([NSData dataWithContentsOfFile:@"/tmp/example_curl_-is_output.txt"]); From 08aed6a53770e96f40093ce39d0f41b41d408fd2 Mon Sep 17 00:00:00 2001 From: Sunny Wang Date: Fri, 20 Nov 2015 20:50:18 -0500 Subject: [PATCH 2/3] Rephrase the wording. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 60af6ec8..04d058dc 100644 --- a/README.md +++ b/README.md @@ -140,7 +140,7 @@ withBody([@"bar" dataUsingEncoding:NSUTF8StringEncoding]); #### Returning raw responses recorded with `curl -is` `curl -is http://api.example.com/dogs.json > /tmp/example_curl_-is_output.txt` -Or through tools such as [SWHttpTrafficRecorder](https://github.com/capitalone/SWHttpTrafficRecorder) which would recorded all raw responses used by an app while the app is accessed. +Or through tools such as [SWHttpTrafficRecorder](https://github.com/capitalone/SWHttpTrafficRecorder) which would record all HTTP(s) responses in formats of raw reponses or content/body only (.json files for MIME type of `application/json` as in some of examples above) while the app is accessed. ```objc stubRequest(@"GET", @"https://api.example.com/dogs.json"). From df94768db89e34dd24c333ba6137779bbef5de3c Mon Sep 17 00:00:00 2001 From: Sunny Wang Date: Fri, 20 Nov 2015 20:52:21 -0500 Subject: [PATCH 3/3] Rephrase the wording again. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 04d058dc..29f36953 100644 --- a/README.md +++ b/README.md @@ -140,7 +140,7 @@ withBody([@"bar" dataUsingEncoding:NSUTF8StringEncoding]); #### Returning raw responses recorded with `curl -is` `curl -is http://api.example.com/dogs.json > /tmp/example_curl_-is_output.txt` -Or through tools such as [SWHttpTrafficRecorder](https://github.com/capitalone/SWHttpTrafficRecorder) which would record all HTTP(s) responses in formats of raw reponses or content/body only (.json files for MIME type of `application/json` as in some of examples above) while the app is accessed. +Or through tools such as [SWHttpTrafficRecorder](https://github.com/capitalone/SWHttpTrafficRecorder) which would record HTTP(s) responses in formats of raw reponses or content/body only (.json files for MIME type of `application/json` as in some of examples above) while an app is accessed. ```objc stubRequest(@"GET", @"https://api.example.com/dogs.json").