Skip to main content
net8.0net9.0

Helpers to manipulate Uri

Published
Apr 13, 2025
1y ago
Total Downloads
78.4K
78,428

Install

dotnet add package Meziantou.Framework.Uri --version 1.0.6
ProductVersions
.NET
net8.0net9.0

README

Meziantou.Framework.Uri

Meziantou.Framework.Uri provides methods to manipulate URIs.

Parse and edit query strings

var uri = "https://www.meziantou.net";
var query = QueryStringUtilities.ParseQueryString(uri);
var author = query["author"];

_ = QueryStringUtilities.AddQueryString(uri, "name", "value");
_ = QueryStringUtilities.AddOrReplaceQueryString(uri, "name", "value");
_ = QueryStringUtilities.SetQueryString(uri, "name", "value");

// Remove a query string parameter
_ = QueryStringUtilities.AddQueryString(uri, "name", null);

Changes from Previous Version

No structural changes between v1.0.5 and v1.0.6.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

Compatibility metadata lists 2 target frameworks; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.