ktor-patterns
CommunityBuild robust Android HTTP clients with Ktor.
Authorahmed3elshaer
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Android apps require a reliable, scalable HTTP client layer. Ktor provides a coroutine-first client that simplifies networking, serialization, and error handling, reducing boilerplate and helping teams align on a single approach.
Core Features & Use Cases
- Content negotiation: seamless JSON serialization with kotlinx.serialization or other serializers.
- Centralized error handling: unified ApiException and safeRequest patterns for robust resilience.
- Authentication & security: Bearer token support with refresh flow and secure header management.
- Interceptors & customization: request/response interceptors to inject headers, log traffic, and enforce timeouts.
- Use Case: Build a small UserApi with endpoints for getUsers, getUser, createUser, updateUser, deleteUser, with mapping from DTOs to domain models.
Quick Start
Use the ktor-patterns skill to configure an HttpClient with OkHttp engine, install ContentNegotiation and HttpTimeout, add Auth, and implement a sample API.
Dependency Matrix
Required Modules
None requiredComponents
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: ktor-patterns Download link: https://github.com/ahmed3elshaer/everything-claude-code-mobile/archive/main.zip#ktor-patterns Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.