SessionManager

public struct SessionManager

A Session for RESTful Services.

Session.default.session = {
    let sessionConfiguration = URLSessionConfiguration.default
    sessionConfiguration.timeoutIntervalForRequest = 7
    sessionConfiguration.timeoutIntervalForResource = 7
    sessionConfiguration.HTTPAdditionalHeaders = Manager.defaultHTTPHeaders
    return Session(configuration: sessionConfiguration)
}
  • The default session manager.

    Declaration

    Swift

    public static var `default`: SessionManager
  • The Alamofire Session. Alamofire.Session(startRequestsImmediately: false) by default.

    Declaration

    Swift

    public var session: <<error type>>
  • Session Intializer

    Declaration

    Swift

    public init()

    Return Value

    new Session object