title: How do I set a request timeout and cache policy in AFNetworking 2.0?
body: <p>I'm following the given example code</p>
  
  <pre><code>AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager];
  [manager GET:@"http://example.com/resources.json" parameters:nil success:^(AFHTTPRequestOperation *operation, id responseObject) {
      NSLog(@"JSON: %@", responseObject);
  } failure:^(AFHTTPRequestOperation *operation, NSError *error) {
      NSLog(@"Error: %@", error);
  }];
  </code></pre>
  
  <p>To change the timeout and cache policy I 'hacked' the library and created </p>
  
  <pre><code>- (AFHTTPRequestOperation *)GET:(NSString *)URLString
                       parameters:(NSDictionary *)parameters
                            timeoutInterval:(NSTimeInterval)timeoutInterval
                      cachePolicy:(NSURLRequestCachePolicy)cachePolicy
                          success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success
                          failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure
  {
      NSMutableURLRequest *request = [self.requestSerializer requestWithMethod:@"GET" URLString:[[NSURL URLWithString:URLString relativeToURL:self.baseURL] absoluteString] parameters:parameters];
      [request setTimeoutInterval:timeoutInterval];
      [request setCachePolicy:cachePolicy];
      AFHTTPRequestOperation *operation = [self HTTPRequestOperationWithRequest:request success:success failure:failure];
      [self.operationQueue addOperation:operation];
  
      return operation;
  }
  </code></pre>
  
  <p>Is there a clean way of doing this?</p>