Ithline.Extensions.Http 0.1.1-alpha

This is a prerelease version of Ithline.Extensions.Http.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Ithline.Extensions.Http --version 0.1.1-alpha
                    
NuGet\Install-Package Ithline.Extensions.Http -Version 0.1.1-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.1.1-alpha" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Ithline.Extensions.Http" Version="0.1.1-alpha" />
                    
Directory.Packages.props
<PackageReference Include="Ithline.Extensions.Http" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Ithline.Extensions.Http --version 0.1.1-alpha
                    
#r "nuget: Ithline.Extensions.Http, 0.1.1-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.
#addin nuget:?package=Ithline.Extensions.Http&version=0.1.1-alpha&prerelease
                    
Install Ithline.Extensions.Http as a Cake Addin
#tool nuget:?package=Ithline.Extensions.Http&version=0.1.1-alpha&prerelease
                    
Install Ithline.Extensions.Http as a Cake Tool

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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.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
1.0.1 174 4/23/2025
1.0.0 105 2/13/2025
0.2.2-alpha 91 8/8/2024
0.2.1-alpha 81 8/8/2024
0.2.0-alpha 84 8/8/2024
0.1.1-alpha 64 8/4/2024
0.1.0-alpha 83 7/27/2024