HTTPSessionManager
open class HTTPSessionManager : URLSessionManager
HTTPSession管理器
-
Undocumented
Declaration
Swift
open private(set) var baseURL: URL? { get }
-
Undocumented
Declaration
Swift
open var requestSerializer: HTTPRequestSerializer
-
Undocumented
Declaration
Swift
open override var securityPolicy: SecurityPolicy { get set }
-
Undocumented
Declaration
Swift
public convenience init()
-
Undocumented
Declaration
Swift
public convenience init(baseURL: URL?)
-
Undocumented
Declaration
Swift
public convenience override init(sessionConfiguration: URLSessionConfiguration?)
-
Undocumented
Declaration
Swift
public init(baseURL: URL?, sessionConfiguration: URLSessionConfiguration?)
-
Undocumented
Declaration
Swift
open func get( urlString: String, parameters: Any? = nil, headers: [String: String]? = nil, progress: ((Progress) -> Void)? = nil, success: ((_ task: URLSessionDataTask, _ responseObject: Any?) -> Void)? = nil, failure: ((_ task: URLSessionDataTask?, _ error: Error) -> Void)? = nil ) -> URLSessionDataTask?
-
Undocumented
Declaration
Swift
open func head( urlString: String, parameters: Any? = nil, headers: [String: String]? = nil, success: ((_ task: URLSessionDataTask) -> Void)? = nil, failure: ((_ task: URLSessionDataTask?, _ error: Error) -> Void)? = nil ) -> URLSessionDataTask?
-
Undocumented
Declaration
Swift
open func post( urlString: String, parameters: Any? = nil, headers: [String: String]? = nil, progress: ((Progress) -> Void)? = nil, success: ((_ task: URLSessionDataTask, _ responseObject: Any?) -> Void)? = nil, failure: ((_ task: URLSessionDataTask?, _ error: Error) -> Void)? = nil ) -> URLSessionDataTask?
-
Undocumented
Declaration
Swift
open func post( urlString: String, parameters: Any? = nil, headers: [String: String]? = nil, constructingBody block: ((MultipartFormData) -> Void)?, progress: ((Progress) -> Void)? = nil, success: ((_ task: URLSessionDataTask, _ responseObject: Any?) -> Void)? = nil, failure: ((_ task: URLSessionDataTask?, _ error: Error) -> Void)? = nil ) -> URLSessionDataTask?
-
Undocumented
Declaration
Swift
open func put( urlString: String, parameters: Any? = nil, headers: [String: String]? = nil, success: ((_ task: URLSessionDataTask, _ responseObject: Any?) -> Void)? = nil, failure: ((_ task: URLSessionDataTask?, _ error: Error) -> Void)? = nil ) -> URLSessionDataTask?
-
Undocumented
Declaration
Swift
open func patch( urlString: String, parameters: Any? = nil, headers: [String: String]? = nil, success: ((_ task: URLSessionDataTask, _ responseObject: Any?) -> Void)? = nil, failure: ((_ task: URLSessionDataTask?, _ error: Error) -> Void)? = nil ) -> URLSessionDataTask?
-
Undocumented
Declaration
Swift
open func delete( urlString: String, parameters: Any? = nil, headers: [String: String]? = nil, success: ((_ task: URLSessionDataTask, _ responseObject: Any?) -> Void)? = nil, failure: ((_ task: URLSessionDataTask?, _ error: Error) -> Void)? = nil ) -> URLSessionDataTask?
-
Undocumented
Declaration
Swift
open func dataTask( httpMethod: String, urlString: String, parameters: Any? = nil, headers: [String: String]? = nil, uploadProgress: ((Progress) -> Void)? = nil, downloadProgress: ((Progress) -> Void)? = nil, success: ((_ task: URLSessionDataTask, _ responseObject: Any?) -> Void)? = nil, failure: ((_ task: URLSessionDataTask?, _ error: Error) -> Void)? = nil ) -> URLSessionDataTask?
-
Undocumented
Declaration
Swift
open override var description: String { get }