         case JSON
         case PropertyList(NSPropertyListFormat, NSPropertyListWriteOptions)
         case Custom((URLRequestConvertible, [String: AnyObject]?) -> (NSMutableURLRequest, NSError?))
-        
+
         func parameterEncoding() -> Alamofire.ParameterEncoding {
             switch self {
             case .URL:

/// Internal token that can be used to cancel requests
struct CancellableToken: Cancellable {
    let cancelAction: () -> ()
    
    func cancel() {
        cancelAction()
    }

    /// Closure that resolves an Endpoint into an NSURLRequest.
    public typealias MoyaEndpointResolution = (endpoint: Endpoint<T>) -> (NSURLRequest)
    public typealias MoyaStubbedBehavior = ((T) -> (Moya.StubbedBehavior))

    public let endpointClosure: MoyaEndpointsClosure
    public let endpointResolver: MoyaEndpointResolution
    public let stubBehavior: MoyaStubbedBehavior
