httpclient-factory
OfficialHttpClientFactory patterns for .NET 10 apps
Software Engineering#resilience#httpclient#httpclientfactory#typed-client#named-client#keyed-client#delegating-handler
Authorcodewithmukesh
Version1.0.0
Installs0
System Documentation
What problem does it solve?
HTTP client usage in .NET apps often leads to socket exhaustion, brittle tests, and brittle configurations when HttpClient is created ad-hoc. This Skill shows how to use IHttpClientFactory to centralize and optimize HTTP calls.
Core Features & Use Cases
- Configure named, typed, and keyed HttpClient instances with resilience in plain DI setups.
- Implement DelegatingHandlers for cross-cutting concerns like auth tokens and correlation IDs, and test patterns for HTTP calls.
- Use in API integrations, microservices, and external service consumption to ensure reliable, thread-safe HTTP access.
Quick Start
Register HttpClient via AddHttpClient and AddStandardResilienceHandler, then inject a named, typed, or keyed client into your services to enable robust, resilient HTTP calls.
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: httpclient-factory Download link: https://github.com/codewithmukesh/dotnet-claude-kit/archive/main.zip#httpclient-factory 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 471,000+ vetted skills library on demand.