Namespace Cuemon.Extensions.Net
The Cuemon.Extensions.Net namespace contains both types and extension methods that complements the Cuemon.Net namespace while being an addition to the System.Net namespace. Includes support for both traditional and factory based ways of working with HttpMangager instances while also including a simple and lightweight implementation of the IHttpClientFactory interface named SlimHttpClientFactory (that provides "managed" HttpClient instances).
Availability: .NET 9, .NET 8 and .NET Standard 2.0
Complements: Cuemon.Net namespace 📘
Extension Methods
| 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.