bugfix/communications #8
@ -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.
|
/// This model includes the data to be injected into an specific URL at the time of mocking its request.
|
||||||
public struct MockURLRequest: Hashable {
|
public struct MockURLRequest: Hashable {
|
||||||
|
|
||||||
|
// MARK: Properties
|
||||||
|
|
||||||
public let method: HTTPRequestMethod
|
public let method: HTTPRequestMethod
|
||||||
public let url: URL
|
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.
|
/// This model includes the data to be injected into an specific URL at the time of mocking its response.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user