Ithline.Extensions.Http
0.2.2-alpha
dotnet add package Ithline.Extensions.Http --version 0.2.2-alpha
NuGet\Install-Package Ithline.Extensions.Http -Version 0.2.2-alpha
<PackageReference Include="Ithline.Extensions.Http" Version="0.2.2-alpha" />
paket add Ithline.Extensions.Http --version 0.2.2-alpha
#r "nuget: Ithline.Extensions.Http, 0.2.2-alpha"
// 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 | Versions 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. |
-
net8.0
- Microsoft.Extensions.ObjectPool (>= 8.0.7)
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 |