A fluent HTTP client library for .NET that simplifies making HTTP requests.
Install via NuGet:
dotnet add package Creobe.Http- Fluent builder API for HTTP requests
- Support for common HTTP methods (GET, POST, PUT, DELETE)
- File upload support
- Query parameter handling
- Pagination support
- Error handling
- Strongly typed responses
Register the HTTP client in your DI container:
services.AddHttpRequestClient("https://api.example.com");private readonly IHttpRequestClient _client;
public MyService(IHttpRequestClient client)
{
_client = client;
}// Simple GET
var response = await _client.Get<MyResponse>()
.ToEndpoint("api/items")
.SendAsync();
// GET with query parameters
var response = await _client.Get<MyResponse>()
.ToEndpoint("api/items")
.WithParameter("category", "books")
.WithParameter("sort", "name")
.SendAsync();var response = await _client.Post<MyResponse>()
.ToEndpoint("api/items")
.WithContent(new { Name = "Book", Price = 9.99 })
.SendAsync();This project is licensed under the MIT License - see the LICENSE file for details.