In the Alamofire.swift file the main API functions are not nested within a class or struct:
import Foundation ... public func request(method: Method, URLString: URLStringConvertible, parameters: [String: AnyObject]? = nil, encoding: ParameterEncoding = .URL) -> Request { return Manager.sharedInstance.request(method, URLString, parameters: parameters, encoding: encoding) } yet they are able to be accessed as if they were a class func since Alamofire. is prepended to the function call:
Alamofire.request(.POST, "http://httpbin.org/post") It doesn't appear to have anything to do with the fact the filename is Alamofire.swift. Is this a framework setting? I'd like to be able to do this for one of my own APIs