Skip to content

Installation

Alessandro Morvillo edited this page Aug 8, 2026 · 1 revision

Installation

Restling supports .NET 8, .NET 9, and .NET 10. Install the package into the application or library that sends HTTP requests.

.NET CLI

Run this command from the directory that contains your project file:

dotnet add package Restling

To target a specific version:

dotnet add package Restling --version 1.0.25.0

NuGet Package Manager

Install-Package Restling

PackageReference

<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.

Namespaces

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;

Create a client

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.

Clone this wiki locally