Created
September 7, 2022 13:31
-
-
Save barisuyar/0e144340b41c595c29e9cc2cb47af68f to your computer and use it in GitHub Desktop.
canonicalRequest and stopLoading
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final class MockURLProtocol: URLProtocol { | |
override class func canInit(with request: URLRequest) -> Bool { true } | |
override class func canonicalRequest(for request: URLRequest) -> URLRequest { request } | |
override func stopLoading() { } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment