     
 }
 
-public typealias challengeHandler = (challenge: URLAuthenticationChallenge, completionHandler: (URLSession.AuthChallengeDisposition, URLCredential?) -> Swift.Void)
-/*
- 提供凭据
- */
+
 public class WTURLSessionDelegate:NSObject,URLSessionDataDelegate{
     
     

        
    }
    
    private func trustIsValid(_ trust:SecTrust) -> Bool {
        var isValid = false
        
        var result = SecTrustResultType.invalid

public typealias jsonHandler = (object:AnyObject?,error:NSError?)->Void
public typealias imageHandler = (image:UIImage?,error:NSError?)->Void
public typealias stringHandler = (string:String?,error:NSError?)->Void


public typealias challengeHandler = ((Foundation.URLSession, URLAuthenticationChallenge) -> (Foundation.URLSession.AuthChallengeDisposition, URLCredential?))

public class WTURLSessionTask:NSObject,URLSessionDataDelegate,URLSessionTaskDelegate{
    //网址凭据
    public var credential: URLCredential?
    public var completionHandler:completionHandler?
