WebSpark.HttpClientUtility
Robust & Simplified .NET HttpClient Wrapper for .NET 10
Why Choose WebSpark.HttpClientUtility?
Stop writing boilerplate code! This library provides a comprehensive solution for HTTP operations with built-in resilience (Polly), caching, telemetry, concurrent processing, and more. Build reliable API clients faster with less code.
Quick Installation
dotnet add package WebSpark.HttpClientUtility
Explore Features
Advanced
🛡️ Resilience & Polly
AdvancedBuilt-in retry policies and circuit breakers for fault tolerance
- Automatic retries
- Circuit breaker
- Exponential backoff
Core Features
🌐 Basic HTTP Operations
EssentialSimple, type-safe HTTP requests with automatic serialization
- GET, POST, PUT, DELETE
- Type-safe responses
- Automatic JSON handling
📊 Request Result Pattern
CoreRich context with correlation IDs, timing metrics, and detailed errors
- Correlation tracking
- Caller information
- Comprehensive context
⚙️ Configuration & Logging
EssentialComplete guide to configuring the library with advanced logging options
- appsettings.json setup
- Log levels
- cURL logging
- Environment configs
Observability
📈 Telemetry & Observability
ObservabilityOpenTelemetry integration for comprehensive monitoring
- OpenTelemetry
- Request tracking
- Performance metrics
Performance
⚡ Response Caching
PerformanceAutomatic response caching with configurable TTL
- Memory caching
- Cache hit/miss tracking
- TTL configuration
🚀 Concurrent Processing
PerformanceExecute multiple HTTP requests in parallel efficiently
- Parallel execution
- Controlled concurrency
- Result aggregation
Security
🔐 Authentication Providers
SecurityMultiple authentication strategies out of the box
- API Key
- Bearer Token
- Basic Auth
- Custom providers
Tools
🔧 Utilities & Tools
ToolsFire-and-forget tasks, cURL generation, and more
- FireAndForget
- cURL generator
- Query string builders
Key Benefits
Reduce Boilerplate
Write 70% less code for HTTP operations with type-safe abstractions
Built-in Resilience
Automatic retries and circuit breakers with Polly integration
Better Performance
Response caching and concurrent processing out of the box
Enhanced Observability
OpenTelemetry integration and correlation ID tracking
Flexible Authentication
Multiple auth providers: API Key, Bearer, Basic, and custom
Easy Testing
Interface-based design makes mocking and testing simple
Ready to Simplify Your HTTP Code?
Join developers already using WebSpark.HttpClientUtility in production