About WebSpark.HttpClientUtility

A production-ready NuGet library that eliminates boilerplate HTTP code while providing enterprise-grade features.

Purpose

WebSpark.HttpClientUtility was created to solve common challenges when working with HttpClient in .NET applications:

Architecture

The library uses a decorator pattern to compose features. This design allows you to:

Decorator Chain

User Code
    ↓
IHttpRequestResultService (Interface)
    ↓
HttpRequestResultServiceTelemetry (Optional - Outermost)
    ↓
HttpRequestResultServicePolly (Optional - Resilience)
    ↓
HttpRequestResultServiceCache (Optional - Caching)
    ↓
HttpRequestResultService (Base - Core HTTP)

Each decorator wraps the layer below it, adding functionality while maintaining the same interface.

Technology Stack

Version History

v1.4.0 (Current)

v1.3.2

v1.3.1

v1.3.0

Quality Assurance

Contributing

We welcome contributions! Here's how you can help:

  1. Report Issues: Found a bug? Open an issue
  2. Suggest Features: Have an idea? Start a discussion
  3. Submit PRs: Want to contribute code? Read the contributing guide

Development Setup

# Clone the repository
git clone https://github.com/markhazleton/WebSpark.HttpClientUtility.git

# Restore dependencies
dotnet restore

# Build
dotnet build --configuration Release

# Run tests
dotnet test --configuration Release

Code of Conduct

This project follows the Contributor Covenant Code of Conduct.

License

MIT License - free for commercial and open-source use.

Copyright (c) 2024 Mark Hazleton

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

Credits

Author

Mark Hazleton

Built With

Acknowledgments

Thank you to all contributors and users who have helped make this library better through feedback, bug reports, and pull requests.

Project Status

Active: This project is actively maintained and accepting contributions.

Community

Statistics

Next Steps