A .NET library that provides a fluent API for building URIs with strict validation of scheme, host, and port.
- Fluent API for building URIs
- Strict validation of scheme, host, and port
- Supports IPv4 address validation
You can install the package via NuGet:
Install-Package Bromix.Fluent.Uri
Or via the .NET CLI:
dotnet add package Bromix.Fluent.Uri
var uriBuilder = FluentUriBuilder
.Create("https", "example.com")
.WithPath("path")
.WithQuery("key", "value");
var uri = uriBuilder.Uri;
Console.WriteLine(uri.ToString()); // "https://example.com/path?key=value"