-
-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
Alessandro Morvillo edited this page Aug 8, 2026
·
1 revision
Restling supports .NET 8, .NET 9, and .NET 10. Install the package into the application or library that sends HTTP requests.
Run this command from the directory that contains your project file:
dotnet add package RestlingTo target a specific version:
dotnet add package Restling --version 1.0.25.0Install-Package Restling<ItemGroup>
<PackageReference Include="Restling" Version="1.0.25.0" />
</ItemGroup>Replace the example version with the version required by your project. The latest published version is listed on NuGet.
Most applications start with:
using AMDevIT.Restling.Core;Additional features use these namespaces:
using AMDevIT.Restling.Core.Cookies;
using AMDevIT.Restling.Core.Cookies.Storage;
using AMDevIT.Restling.Core.Network;
using AMDevIT.Restling.Core.Network.Builders;
using AMDevIT.Restling.Core.Network.Builders.Security.Headers;
using AMDevIT.Restling.Core.Serialization;The parameterless constructor creates a client with a default SocketsHttpHandler:
RestlingClient client = new();You can also pass an ILogger, an IHttpClientContextBuilder, or both:
RestlingClient client = new(builder, logger);Continue with the Quick Start.