Skip to content

Commit ebb6eb2

Browse files
committed
You know what's an even _better name? AFHTTPClient. Boom.
1 parent cad7d40 commit ebb6eb2

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

AFNetworking/AFRESTClient.h renamed to AFNetworking/AFHTTPClient.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// AFRESTClient.h
1+
// AFHTTPClient.h
22
//
33
// Copyright (c) 2011 Gowalla (http://gowalla.com/)
44
//
@@ -25,7 +25,7 @@
2525

2626
@protocol AFMultipartFormDataProxy;
2727

28-
@interface AFRESTClient : NSObject {
28+
@interface AFHTTPClient : NSObject {
2929
@private
3030
NSURL *_baseURL;
3131
NSStringEncoding _stringEncoding;

AFNetworking/AFRESTClient.m renamed to AFNetworking/AFHTTPClient.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// AFRESTClient.m
1+
// AFHTTPClient.m
22
//
33
// Copyright (c) 2011 Gowalla (http://gowalla.com/)
44
//
@@ -20,7 +20,7 @@
2020
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121
// THE SOFTWARE.
2222

23-
#import "AFRESTClient.h"
23+
#import "AFHTTPClient.h"
2424
#import "AFJSONRequestOperation.h"
2525

2626
static NSString * const kAFMultipartFormLineDelimiter = @"\r\n"; // CRLF
@@ -83,13 +83,13 @@ - (NSData *)data;
8383
return [(NSString *)CFURLCreateStringByAddingPercentEscapes(kCFAllocatorDefault, (CFStringRef)string, NULL, (CFStringRef)kAFLegalCharactersToBeEscaped, CFStringConvertNSStringEncodingToEncoding(encoding)) autorelease];
8484
}
8585

86-
@interface AFRESTClient ()
86+
@interface AFHTTPClient ()
8787
@property (readwrite, nonatomic, retain) NSURL *baseURL;
8888
@property (readwrite, nonatomic, retain) NSMutableDictionary *defaultHeaders;
8989
@property (readwrite, nonatomic, retain) NSOperationQueue *operationQueue;
9090
@end
9191

92-
@implementation AFRESTClient
92+
@implementation AFHTTPClient
9393
@synthesize baseURL = _baseURL;
9494
@synthesize stringEncoding = _stringEncoding;
9595
@synthesize defaultHeaders = _defaultHeaders;

Example/AFNetworking Example.xcodeproj/project.pbxproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
F8E469671395739D00DB05C8 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F8E469661395739D00DB05C8 /* Foundation.framework */; };
2828
F8E469691395739D00DB05C8 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F8E469681395739D00DB05C8 /* CoreGraphics.framework */; };
2929
F8E469DF13957DD500DB05C8 /* CoreLocation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F8E469DE13957DD500DB05C8 /* CoreLocation.framework */; };
30-
F8FBFA98142AA239001409DB /* AFRESTClient.m in Sources */ = {isa = PBXBuildFile; fileRef = F8FBFA97142AA238001409DB /* AFRESTClient.m */; };
30+
F8FBFA98142AA239001409DB /* AFHTTPClient.m in Sources */ = {isa = PBXBuildFile; fileRef = F8FBFA97142AA238001409DB /* AFHTTPClient.m */; };
3131
FF2B770D140DAC4E00A8DEC2 /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = FF2B770C140DAC4E00A8DEC2 /* libz.dylib */; };
3232
/* End PBXBuildFile section */
3333

@@ -71,8 +71,8 @@
7171
F8E469E013957DF100DB05C8 /* Security.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Security.framework; path = System/Library/Frameworks/Security.framework; sourceTree = SDKROOT; };
7272
F8E469E213957DF700DB05C8 /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; };
7373
F8E469E413957E0400DB05C8 /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; };
74-
F8FBFA96142AA237001409DB /* AFRESTClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AFRESTClient.h; path = ../AFNetworking/AFRESTClient.h; sourceTree = "<group>"; };
75-
F8FBFA97142AA238001409DB /* AFRESTClient.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AFRESTClient.m; path = ../AFNetworking/AFRESTClient.m; sourceTree = "<group>"; };
74+
F8FBFA96142AA237001409DB /* AFHTTPClient.h */ = {isa = PBXFileReference; fileEncoding = 4; name = AFHTTPClient.h; path = ../AFNetworking/AFHTTPClient.h; sourceTree = "<group>"; };
75+
F8FBFA97142AA238001409DB /* AFHTTPClient.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AFHTTPClient.m; path = ../AFNetworking/AFHTTPClient.m; sourceTree = "<group>"; };
7676
FF2B770C140DAC4E00A8DEC2 /* libz.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libz.dylib; path = usr/lib/libz.dylib; sourceTree = SDKROOT; };
7777
/* End PBXFileReference section */
7878

@@ -227,8 +227,8 @@
227227
F874B5C913E0AA6500B28E3E /* AFHTTPRequestOperation.m */,
228228
F874B5D413E0AA6500B28E3E /* AFJSONRequestOperation.h */,
229229
F874B5CC13E0AA6500B28E3E /* AFJSONRequestOperation.m */,
230-
F8FBFA96142AA237001409DB /* AFRESTClient.h */,
231-
F8FBFA97142AA238001409DB /* AFRESTClient.m */,
230+
F8FBFA96142AA237001409DB /* AFHTTPClient.h */,
231+
F8FBFA97142AA238001409DB /* AFHTTPClient.m */,
232232
F874B5D313E0AA6500B28E3E /* AFImageRequestOperation.h */,
233233
F874B5CB13E0AA6500B28E3E /* AFImageRequestOperation.m */,
234234
F874B5D213E0AA6500B28E3E /* AFImageCache.h */,
@@ -336,7 +336,7 @@
336336
F874B5DC13E0AA6500B28E3E /* AFJSONRequestOperation.m in Sources */,
337337
F874B5DD13E0AA6500B28E3E /* AFNetworkActivityIndicatorManager.m in Sources */,
338338
F874B5E013E0AA6500B28E3E /* UIImageView+AFNetworking.m in Sources */,
339-
F8FBFA98142AA239001409DB /* AFRESTClient.m in Sources */,
339+
F8FBFA98142AA239001409DB /* AFHTTPClient.m in Sources */,
340340
);
341341
runOnlyForDeploymentPostprocessing = 0;
342342
};

Example/Classes/AFGowallaAPIClient.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
// THE SOFTWARE.
2222

2323
#import <Foundation/Foundation.h>
24-
#import "AFRESTClient.h"
24+
#import "AFHTTPClient.h"
2525

2626
extern NSString * const kAFGowallaClientID;
2727
extern NSString * const kAFGowallaBaseURLString;
2828

29-
@interface AFGowallaAPIClient : AFRESTClient
29+
@interface AFGowallaAPIClient : AFHTTPClient
3030
+ (AFGowallaAPIClient *)sharedClient;
3131
@end

0 commit comments

Comments
 (0)