WebSpark.HttpClientUtility WebSpark.HttpClientUtility

Robust & Simplified .NET HttpClient Wrapper for .NET 10

v2.5.1 .NET 10 MIT License
Quick Installation
dotnet add package WebSpark.HttpClientUtility

Explore Features

Advanced

🛡️ Resilience & Polly

Advanced

Built-in retry policies and circuit breakers for fault tolerance

  • Automatic retries
  • Circuit breaker
  • Exponential backoff

Core Features

🌐 Basic HTTP Operations

Essential

Simple, type-safe HTTP requests with automatic serialization

  • GET, POST, PUT, DELETE
  • Type-safe responses
  • Automatic JSON handling

📊 Request Result Pattern

Core

Rich context with correlation IDs, timing metrics, and detailed errors

  • Correlation tracking
  • Caller information
  • Comprehensive context

⚙️ Configuration & Logging

Essential

Complete guide to configuring the library with advanced logging options

  • appsettings.json setup
  • Log levels
  • cURL logging
  • Environment configs

Observability

📈 Telemetry & Observability

Observability

OpenTelemetry integration for comprehensive monitoring

  • OpenTelemetry
  • Request tracking
  • Performance metrics

Performance

Response Caching

Performance

Automatic response caching with configurable TTL

  • Memory caching
  • Cache hit/miss tracking
  • TTL configuration

🚀 Concurrent Processing

Performance

Execute multiple HTTP requests in parallel efficiently

  • Parallel execution
  • Controlled concurrency
  • Result aggregation

Security

🔐 Authentication Providers

Security

Multiple authentication strategies out of the box

  • API Key
  • Bearer Token
  • Basic Auth
  • Custom providers

Tools

🔧 Utilities & Tools

Tools

Fire-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