Created
March 7, 2023 06:08
-
-
Save snowzurfer/f0a5a76ce2d9b595feffb7bb10cc2c86 to your computer and use it in GitHub Desktop.
Revisions
-
snowzurfer created this gist
Mar 7, 2023 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ extension HTTPURLResponse { /// Returns `true` if `statusCode` is in range 200...299. /// Otherwise `false`. var is2xx: Bool { return 200 ... 299 ~= statusCode } }