New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Async/await URLSession guide for iOS and macOS networking, covering REST, uploads, downloads, and retry policy.

skills.sh installs
4.7K
GitHub stars
1.3K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers foreground REST calls, uploads, downloads, streaming, WebSocket, pagination, retry, middleware, caching, and reachability in Swift apps
  • Includes protocol-based API client patterns, Endpoint builders, RequestMiddleware interceptors, and URLProtocol test fixtures for offline validation
  • Enforces HTTP status validation before decoding, bounded retries limited to idempotent requests, and no looping token refresh
  • Designed for iOS and macOS developers building or reviewing app networking code with URLSession and structured concurrency

Install

$ npx -y skills add dpearson2699/swift-ios-skills --skill ios-networking -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

iOS Networking

Use URLSession with async/await and structured concurrency for ordinary HTTP, REST, uploads, downloads, and streaming. Use Network.framework for lower-level protocols and delegate/task APIs for durable background transfers.

Contents

Core URLSession async/await

URLSession gained native async/await overloads in iOS 15. Prefer these for foreground data, upload, download, and streaming work. Background URLSession transfers are the main exception: they still use task/delegate APIs so the system can deliver events after suspension or relaunch.

Details

Repository
github.com/dpearson2699/swift-ios-skills
Category
Mobile Apps
First seen
Apr 16, 2026

More from dpearson2699/swift-ios-skills

All 94

Similar to Ios Networking

More Mobile Apps