Ithline.Extensions.Http 0.2.2-alpha

This is a prerelease version of Ithline.Extensions.Http.
dotnet add package Ithline.Extensions.Http --version 0.2.2-alpha                
NuGet\Install-Package Ithline.Extensions.Http -Version 0.2.2-alpha                
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="Ithline.Extensions.Http" Version="0.2.2-alpha" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Ithline.Extensions.Http --version 0.2.2-alpha                
#r "nuget: Ithline.Extensions.Http, 0.2.2-alpha"                
#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 Ithline.Extensions.Http as a Cake Addin
#addin nuget:?package=Ithline.Extensions.Http&version=0.2.2-alpha&prerelease

// Install Ithline.Extensions.Http as a Cake Tool
#tool nuget:?package=Ithline.Extensions.Http&version=0.2.2-alpha&prerelease                

Ithline.Extensions.Http

Simple package to generate route builders using C# source generators.

The generator parses provided route pattern and generates method implementation that

  • interpolates method parameters inside the template,
  • serializes extra parameters as query arguments if provided (must be null if optional).

Each method can be configured to lowercase the route path and/or query strings, and append trailing slash to the path.

Generator handles parameter encoding, IEnumerable parameters and optional route and query parameters.

Installation

Add a NuGet package reference to the project:<br> <PackageReference Include="Ithline.Extensions.Http" Version="<version>" />

Usage example

using Ithline.Extensions.Http;

partial class AppRoutes
{
    [GeneratedRoute("/my-basic/{route:guid}")]
    public static partial string MyBasicRoute(Guid route, [QueryName("p")] int? page = null);
}
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.2.2-alpha 61 8/8/2024
0.2.1-alpha 56 8/8/2024
0.2.0-alpha 60 8/8/2024
0.1.1-alpha 40 8/4/2024
0.1.0-alpha 54 7/27/2024