-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathTestRequest.m
More file actions
52 lines (35 loc) · 947 Bytes
/
TestRequest.m
File metadata and controls
52 lines (35 loc) · 947 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//
// TestRequest.m
// AFNetworking-Base
//
// Created by yangjunhai on 14-3-27.
// Copyright (c) 2014年 soooner. All rights reserved.
//
#import "TestRequest.h"
#define PROTOCOL_URL @"http://www.baidu.com"
#define POST_FILE_URL @"/212122"
@implementation TestRequest
- (instancetype)init
{
self = [super init];
if (self) {
// self.responseType =ResponseProtocolTypeFile;
// self.responseType =ResponseProtocolTypeJSON;
self.responseType =ResponseProtocolTypeNormal;
self.requestType = RequestProtocolTypeJSON;
}
return self;
}
-(void)prepareRequest{
[self buildGetRequest:PROTOCOL_URL];
}
-(void)processString:(NSString *)str{
// NSLog(@"processString:%@", str);
}
-(void)processDictionary:(id)dictionary{
NSLog(@"processDictionary:%@", dictionary);
}
-(void)processFile:(NSString *)filePath{
NSLog(@"processFile:%@", filePath);
}
@end