HTTPSessionManager

open class HTTPSessionManager : URLSessionManager, @unchecked Sendable

HTTPSession管理器

AFNetworking

  • Undocumented

    Declaration

    Swift

    open private(set) var baseURL: URL? { get }
  • Undocumented

    Declaration

    Swift

    open var requestSerializer: HTTPRequestSerializer
  • Undocumented

    Declaration

    Swift

    override open var securityPolicy: SecurityPolicy { get set }
  • Undocumented

    Declaration

    Swift

    public convenience init()
  • Undocumented

    Declaration

    Swift

    public convenience init(baseURL: URL?)
  • Undocumented

    Declaration

    Swift

    override public convenience 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: (@Sendable (Progress) -> Void)? = nil,
        success: (@Sendable (_ task: URLSessionDataTask, _ responseObject: Any?) -> Void)? = nil,
        failure: (@Sendable (_ task: URLSessionDataTask?, _ error: Error) -> Void)? = nil
    ) -> URLSessionDataTask?
  • Undocumented

    Declaration

    Swift

    open func head(
        urlString: String,
        parameters: Any? = nil,
        headers: [String: String]? = nil,
        success: (@Sendable (_ task: URLSessionDataTask) -> Void)? = nil,
        failure: (@Sendable (_ task: URLSessionDataTask?, _ error: Error) -> Void)? = nil
    ) -> URLSessionDataTask?
  • Undocumented

    Declaration

    Swift

    open func post(
        urlString: String,
        parameters: Any? = nil,
        headers: [String: String]? = nil,
        progress: (@Sendable (Progress) -> Void)? = nil,
        success: (@Sendable (_ task: URLSessionDataTask, _ responseObject: Any?) -> Void)? = nil,
        failure: (@Sendable (_ task: URLSessionDataTask?, _ error: Error) -> Void)? = nil
    ) -> URLSessionDataTask?
  • Undocumented

    Declaration

    Swift

    open func post(
        urlString: String,
        parameters: Any? = nil,
        headers: [String: String]? = nil,
        constructingBody block: (@Sendable (MultipartFormData) -> Void)?,
        progress: (@Sendable (Progress) -> Void)? = nil,
        success: (@Sendable (_ task: URLSessionDataTask, _ responseObject: Any?) -> Void)? = nil,
        failure: (@Sendable (_ task: URLSessionDataTask?, _ error: Error) -> Void)? = nil
    ) -> URLSessionDataTask?
  • Undocumented

    Declaration

    Swift

    open func put(
        urlString: String,
        parameters: Any? = nil,
        headers: [String: String]? = nil,
        success: (@Sendable (_ task: URLSessionDataTask, _ responseObject: Any?) -> Void)? = nil,
        failure: (@Sendable (_ task: URLSessionDataTask?, _ error: Error) -> Void)? = nil
    ) -> URLSessionDataTask?
  • Undocumented

    Declaration

    Swift

    open func patch(
        urlString: String,
        parameters: Any? = nil,
        headers: [String: String]? = nil,
        success: (@Sendable (_ task: URLSessionDataTask, _ responseObject: Any?) -> Void)? = nil,
        failure: (@Sendable (_ task: URLSessionDataTask?, _ error: Error) -> Void)? = nil
    ) -> URLSessionDataTask?
  • Undocumented

    Declaration

    Swift

    open func delete(
        urlString: String,
        parameters: Any? = nil,
        headers: [String: String]? = nil,
        success: (@Sendable (_ task: URLSessionDataTask, _ responseObject: Any?) -> Void)? = nil,
        failure: (@Sendable (_ 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: (@Sendable (Progress) -> Void)? = nil,
        downloadProgress: (@Sendable (Progress) -> Void)? = nil,
        success: (@Sendable (_ task: URLSessionDataTask, _ responseObject: Any?) -> Void)? = nil,
        failure: (@Sendable (_ task: URLSessionDataTask?, _ error: Error) -> Void)? = nil
    ) -> URLSessionDataTask?
  • Undocumented

    Declaration

    Swift

    override open var description: String { get }