SessionDelegate

open class SessionDelegate : NSObject, @unchecked Sendable
extension SessionDelegate: URLSessionDelegate
extension SessionDelegate: URLSessionTaskDelegate
extension SessionDelegate: URLSessionDataDelegate
extension SessionDelegate: URLSessionWebSocketDelegate
extension SessionDelegate: URLSessionDownloadDelegate

Class which implements the various URLSessionDelegate methods to connect various Alamofire features.

  • Creates an instance from the given FileManager.

    Declaration

    Swift

    public init(fileManager: FileManager = .default)

    Parameters

    fileManager

    FileManager to use for underlying file management, such as moving downloaded files. .default by default.

URLSessionDelegate

URLSessionTaskDelegate

URLSessionDataDelegate

URLSessionWebSocketDelegate

URLSessionDownloadDelegate