Demolite.Http
0.0.1
dotnet add package Demolite.Http --version 0.0.1
NuGet\Install-Package Demolite.Http -Version 0.0.1
<PackageReference Include="Demolite.Http" Version="0.0.1" />
paket add Demolite.Http --version 0.0.1
#r "nuget: Demolite.Http, 0.0.1"
// Install Demolite.Http as a Cake Addin #addin nuget:?package=Demolite.Http&version=0.0.1 // Install Demolite.Http as a Cake Tool #tool nuget:?package=Demolite.Http&version=0.0.1
Demolite.Http
Demolite.Http is a simple-ish wrapper around Flurl and Serilog which is meant to reduce the amount of boilerplate code needed for creating new projects.
It is used actively in Conservices POS for all requests .
Using this package works as follows:
It is best to create an abstract repository for every API you want to contact which inherits from the AbstractHttpRepository and implements the methods necessary to override.
See for example the AbstractPretixRepository in the Conservices POS Repository.
From that repository, create inherited repositories which then implement the methods needed.
The AbstractUrlBuilder and the IParameterBuilder can be used in tandem to create classes which allow building Urls in a fluent manner.
Examples can be found in the PretixUrlBuilder and the PretixParameterBuilder.
The PrepareRequest method can then automatically use the builder to build request Uris without much effort.
Of course, all methods are overrideable, so if you wish to implement your own URL building that is always possible.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.0
- Flurl.Http (>= 4.0.2)
- Serilog (>= 4.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.0.1 | 187 | 10/6/2024 |