diff --git a/Sources/Communications/Classes/MockURLProtocol.swift b/Sources/Communications/Classes/MockURLProtocol.swift index 1a92bf6..6a19689 100644 --- a/Sources/Communications/Classes/MockURLProtocol.swift +++ b/Sources/Communications/Classes/MockURLProtocol.swift @@ -75,8 +75,22 @@ public class MockURLProtocol: URLProtocol { /// This model includes the data to be injected into an specific URL at the time of mocking its request. public struct MockURLRequest: Hashable { + + // MARK: Properties + public let method: HTTPRequestMethod public let url: URL + + // MARK: Initialisers + + public init( + method: HTTPRequestMethod, + url: URL + ) { + self.method = method + self.url = url + } + } /// This model includes the data to be injected into an specific URL at the time of mocking its response.