Skip to content

bromix/Bromix.Fluent.Uri

Repository files navigation

Nuget Nuget GitHub

Bromix.Fluent.Uri

A .NET library that provides a fluent API for building URIs with strict validation of scheme, host, and port.

Features

  • Fluent API for building URIs
  • Strict validation of scheme, host, and port
  • Supports IPv4 address validation

Installation

You can install the package via NuGet:

Install-Package Bromix.Fluent.Uri

Or via the .NET CLI:

dotnet add package Bromix.Fluent.Uri

Usage

Creating a 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"

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages