Table of Contents

Namespace Cuemon.Extensions.Net

Assembly: Cuemon.Extensions.Net.dll

Build query strings, encode and decode URLs, evaluate HTTP status codes concisely, and manage HttpClient instances without the boilerplate. Use this namespace when you need URL encoding, query string construction, HTTP status classification, or a lightweight IHttpClientFactory. Start with ToQueryString on IDictionary{string, string[]} for building query strings or SlimHttpClientFactory for managed HTTP clients.

Availability: .NET 10, .NET 9 and .NET Standard 2.0

Complements: Cuemon.Net namespace 📘

Extension Members

Type Ext Methods
byte[] ⬇️ UrlEncode
IDictionary{string, string[]} ⬇️ ToQueryString
HttpStatusCode ⬇️ IsInformationStatusCode, IsSuccessStatusCode, IsRedirectionStatusCode, IsClientErrorStatusCode, IsServerErrorStatusCode
NameValueCollection ⬇️ ToQueryString
String ⬇️ UrlDecode, UrlEncode

Classes

ByteArrayExtensions

Extension methods for the byte[].

DictionaryExtensions

Extension methods for the IDictionary<TKey, TValue> interface.

HttpStatusCodeExtensions

Extension methods for the HttpStatusCode enum.

NameValueCollectionExtensions

Extension methods for the NameValueCollection class.

StringExtensions

Extension methods for the string class.