Skip to content

Commit

Permalink
Fixed some inaccurate docs on a few of the public delegate closures.
Browse files Browse the repository at this point in the history
  • Loading branch information
cnoon committed Apr 26, 2015
1 parent 333bf87 commit c45881f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/Alamofire.swift
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ public class Manager {
/// NSURLSessionDelegate override closure for `URLSession:didReceiveChallenge:completionHandler:` method.
public var sessionDidReceiveChallenge: ((NSURLSession!, NSURLAuthenticationChallenge) -> (NSURLSessionAuthChallengeDisposition, NSURLCredential!))?

/// NSURLSessionDelegate override closure for `URLSession:didFinishEventsForBackgroundURLSession:` method.
/// NSURLSessionDelegate override closure for `URLSessionDidFinishEventsForBackgroundURLSession:` method.
public var sessionDidFinishEventsForBackgroundURLSession: ((NSURLSession!) -> Void)?

public func URLSession(session: NSURLSession, didBecomeInvalidWithError error: NSError?) {
Expand All @@ -394,10 +394,10 @@ public class Manager {

// MARK: NSURLSessionTaskDelegate

/// Overrides default behavior for NSURLSessionTaskDelegate method `URLSession:willPerformHTTPRedirection:newRequest:completionHandler:`.
/// Overrides default behavior for NSURLSessionTaskDelegate method `URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:`.
public var taskWillPerformHTTPRedirection: ((NSURLSession!, NSURLSessionTask!, NSHTTPURLResponse!, NSURLRequest!) -> (NSURLRequest!))?

/// Overrides default behavior for NSURLSessionTaskDelegate method `URLSession:willPerformHTTPRedirection:newRequest:completionHandler:`.
/// Overrides default behavior for NSURLSessionTaskDelegate method `URLSession:task:didReceiveChallenge:completionHandler:`.
public var taskDidReceiveChallenge: ((NSURLSession!, NSURLSessionTask!, NSURLAuthenticationChallenge) -> (NSURLSessionAuthChallengeDisposition, NSURLCredential!))?

/// Overrides default behavior for NSURLSessionTaskDelegate method `URLSession:session:task:needNewBodyStream:`.
Expand Down

0 comments on commit c45881f

Please sign in to comment.