我想弄清楚如何从AFNetworking请求中读取响应头?
是否可以在以下代码段中,或者我是否需要采取其他方法?
// Create client
AFHTTPClient *client = [[AFHTTPClient alloc] initWithBaseURL:[NSURL URLWithString:@"http://example.com/"]];
// Send request
[client getPath:@"/test" parameters:nil success:^(AFHTTPRequestOperation *operation, id response) {
} failure:^(AFHTTPRequestOperation *operation, NSError *error){
}];
Run Code Online (Sandbox Code Playgroud)