bugfix/communications #8

Merged
javier merged 2 commits from bugfix/communications into main 2023-04-19 14:17:15 +00:00
Showing only changes of commit a9a7a6399a - Show all commits

View File

@ -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.