-
Returns Mocked data based on the mocks register in the
Mocker
. Will end up in an error when no Mock data is found for the request.Declaration
Swift
public override func startLoading()
-
Overrides needed to define a valid inheritance of URLProtocol.
Declaration
Swift
public override class func canInit(with request: URLRequest) -> Bool
-
Implementation does nothing, but is needed for a valid inheritance of URLProtocol.
Declaration
Swift
public override func stopLoading()
-
Simply sends back the passed request. Implementation is needed for a valid inheritance of URLProtocol.
Declaration
Swift
public override class func canonicalRequest(for request: URLRequest) -> URLRequest