urlsession-networking

Community

Robust URLSession networking for Swift apps.

AuthordimitriRemoiville
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Provides a typed, reliable networking layer for Swift apps using URLSession, async/await, and Codable, with centralized error mapping and bearer-token auth integration.

Core Features & Use Cases

  • Typed API client: supports GET and POST with generic Decodable/Encodable payloads.
  • Centralized error handling: maps low-level URLSession errors to domain-friendly errors.
  • Auth integration: uses an AuthTokenProvider to attach Bearer tokens to requests.
  • Use Case: fetch a list of items from an endpoint and decode into domain models, then map errors for UI presentation.

Quick Start

Initialize LiveAPIClient with a baseURL and an AuthTokenProvider, then call get or post with appropriate models to perform a network request.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: urlsession-networking
Download link: https://github.com/dimitriRemoiville/cc-mobile/archive/main.zip#urlsession-networking

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.