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

        return Endpoint(URL: url!, sampleResponse: .Success(200, {target.sampleData}), method: target.method, parameters: target.parameters)
    }

    public class func DefaultEnpointResolution(endpoint: Endpoint<T>) -> NSURLRequest {
        return DefaultEndpointResolution(endpoint)
    }


    /// 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
