         FireMockDebug.prefix = prefix
     }
 }
-
-func ==(lhs: FireMock.ConfigMock, rhs: FireMock.ConfigMock) -> Bool {
-    return lhs.url == rhs.url && rhs.httpMethod == lhs.httpMethod
-}


public struct FireMock {

    public struct ConfigMock {
        var mocks: [FireMockProtocol]
        var httpMethod: MockHTTPMethod
        var enabled: Bool = true
        var url: URL?
        var regex: String?
    }

    /// Mocks added.

    }

    internal static func update(configMock: ConfigMock) {
		
		if let index = mocks.index(of: configMock) {
			mocks = mocks.filter({ $0 != configMock })
			mocks.insert(configMock, at: index)
		} else {
			mocks.append(configMock)
		}

        let names = configMock.mocks.reduce("", { $0 + " " + ($1.name ?? "") })
        FireMockDebug.debug(message: "Update mock -\(names)- for \(String(describing: configMock.url))", level: .high)
