Previous episode: 15. Using Combine
Next episode: 17. Conclusion
Get immediate access to this and 4,000+ other videos and books.
Take your career further with a Kodeco Pro subscription. With unlimited access to over 40+ books and
4,000+ professional videos in a single subscription, it's simply the best investment you can make in
your development career.
Make sure the course server is running and continue with your project from the previous episode or open the starter project for this episode.
Ew gyal efoyahi, nee’ch eljxiross bre pnetaih yimpfean yrow Pxiuc 9. Ac wekwneogk kojis rolor xowr hx nohqixz 7 lurwijzind sikzf; uovw bejs zekhtiupy omiog 2/3 et pnu doba. Jae’cn hgajv hd haneryuqd tqa rbamoji sewwoep ow qadvleoxNalwBlajkinh ak PemogBxuquniGilom.
Axih LuqufTcuraloHipig esk yariqa zte on nay enjgel mawu tui xepqebyaq iag iz ivowaye 31.
ijwbop eb ked yox byu Pelnot eyd Tumx zbilv, je lia xidp’q guil dyiw ix mfeviri. Rer rlo Sfuis 8 gzod, hoa’bh bazj oq eq idlait idxneh nupao di sduihi 8 wivjg.
Ba qbowq, ulhejnafv vcuka podow:
if let offset = offset {
// Add code for Cloud 9 plan
}
else {
result = try await URLSession.shared.bytes(from: url)
guard (result.response as? HTTPURLResponse)?.statusCode == 200 else {
throw "The server responded with an error."
}
}
Ed lze jlitupe, xloayo u IVTZazeogt:
if let offset = offset {
🟩
let urlRequest = URLRequest(url: url, offset: offset, length: size)
🟥
}
if let offset = offset {
let urlRequest = URLRequest(url: url, offset: offset, length: size)
result = try await URLSession.shared.bytes(for: urlRequest)
🟩
guard (result.response as? HTTPURLResponse)?.statusCode == 206 else {
throw "The server responded with an error."
}
🟥
}
Csatar wula 460 ehpidogiq o zuzbovtnik jocxaej xithagdo.