title: Handle timeout with Alamofire
body: <p>Is it possible to add timeout handler for Alamofire request?</p>
  
  <p>In my project I use Alamofire this way:</p>
  
  <pre><code>init() {
      let configuration = NSURLSessionConfiguration.defaultSessionConfiguration()
      configuration.timeoutIntervalForRequest = 30
  
      self.alamofireManager = Alamofire.Manager(configuration: configuration)
  }
  
  func requestAuthorizationWithEmail(email:NSString, password:NSString, completion: (result: RequestResult) -&gt; Void) {
  
      self.alamofireManager!.request(.POST, "myURL", parameters:["email": email, "password":password])
          .responseJSON { response in
              switch response.result {
              case .Success(let JSON):
                  //do json stuff
              case .Failure(let error):
                  print("\n\nAuth request failed with error:\n \(error)")
                  completion(result: .ConnectionFailed)
              }
      }
  }
  </code></pre>
  
  <p>EDIT:</p>
  
  <p>request fail message</p>
  
  <blockquote>
    <p>Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo={NSUnderlyingError=0x7fc10b937320 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 "(null)" UserInfo={_kCFStreamErrorCodeKey=-2102, _kCFStreamErrorDomainKey=4}}, NSErrorFailingURLStringKey=url, NSErrorFailingURLKey=url, _kCFStreamErrorDomainKey=4, _kCFStreamErrorCodeKey=-2102, NSLocalizedDescription=The request timed out.}</p>
  </blockquote>