Alamofire Docs

Alamofire Reference Manager Class Reference

Manager

Responsible for creating and managing Request objects, as well as their underlying NSURLSession.

  • A shared instance of Manager, used by top-level Alamofire request methods, and suitable for use directly for any ad hoc requests.

    Declaration

    Swift

    public class var sharedInstance: Manager { get }

  • Whether to start requests immediately after being constructed. true by default.

    Declaration

    Swift

    public var startRequestsImmediately: Bool

  • A shared instance of Manager, used by top-level Alamofire request methods, and suitable for use directly for any ad hoc requests.

    Declaration

    Swift

    public class var sharedInstance: Manager { get }

  • The underlying session.

    Declaration

    Swift

    public let session: NSURLSession

  • Undocumented

  • Undocumented

  • Undocumented

  • The underlying session.

    Declaration

    Swift

    public let session: NSURLSession

  • Whether to start requests immediately after being constructed. true by default.

    Declaration

    Swift

    public var startRequestsImmediately: Bool

  • Declaration

    Swift

    required public init(configuration: NSURLSessionConfiguration? = default)

    Parameters

    configuration

    The configuration used to construct the managed session.

  • Undocumented

  • Creates a request for the specified method, URL string, parameters, and parameter encoding.

    Declaration

    Swift

    public func request(method: Method, _ URLString: URLStringConvertible, parameters: [String : AnyObject]? = default, encoding: ParameterEncoding = default) -> Request

    Parameters

    method

    The HTTP method.

    URLString

    The URL string.

    parameters

    The parameters. nil by default.

    encoding

    The parameter encoding. .URL by default.

    Return Value

    The created request.

  • Creates a request for the specified URL request.If startRequestsImmediately is true, the request will have resume() called before being returned.

    Declaration

    Swift

    public func request(URLRequest: URLRequestConvertible) -> Request

    Parameters

    URLRequest

    The URL request

    Return Value

    The created request.

  • Undocumented