Demolite.Http 0.0.1

dotnet add package Demolite.Http --version 0.0.1                
NuGet\Install-Package Demolite.Http -Version 0.0.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Demolite.Http" Version="0.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Demolite.Http --version 0.0.1                
#r "nuget: Demolite.Http, 0.0.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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 176 10/6/2024