Last active
April 8, 2023 23:16
-
-
Save LukeSmith16/dafafb8b0aec88a5575da1a8cc8d8741 to your computer and use it in GitHub Desktop.
This file contains 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
// Low priority request | |
var prefetchRequest = URLRequest(url: URL(string: "https://www.apple.com")!) | |
prefetchRequest.networkServiceType = .background | |
// High priority request | |
var checkoutRequest = URLRequest(url: URL(string: "https://www.apple.com")!) | |
checkoutRequest.networkServiceType = .responsiveData |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment