Namespace Cuemon.Extensions.AspNetCore.Http
Manipulate HTTP headers, query HTTP status codes, and write response bodies on ASP.NET Core types without repetitive boilerplate. Use this namespace when you need to check HTTP method semantics on HttpRequest, manage ETag and Last-Modified headers on HttpResponse, or classify HTTP status codes. Start with IsGetOrHeadMethod on HttpRequest for method checks, or AddOrUpdateEntityTagHeader on HttpResponse for cache header management.
Availability: .NET 10 and .NET 9
Complements: Cuemon.AspNetCore.Http namespace 📘
Extension Members
| Type | Ext | Methods |
|---|---|---|
| IHeaderDictionary | ⬇️ | AddOrUpdateHeaders, AddOrUpdateHeader |
| HttpRequest | ⬇️ | IsGetOrHeadMethod, IsClientSideResourceCached, AcceptMimeTypesOrderedByQuality |
| IEnumerable |
⬇️ | SelectExceptionDescriptorHandlers |
| HttpResponse | ⬇️ | AddOrUpdateEntityTagHeader, AddOrUpdateLastModifiedHeader, WriteBodyAsync, OnStartingInvokeTransformer |
| Int32 | ⬇️ | IsInformationStatusCode, IsSuccessStatusCode, IsRedirectionStatusCode, IsNotModifiedStatusCode, IsClientErrorStatusCode, IsServerErrorStatusCode |
Classes
HeaderDictionaryExtensions
Extension methods for the IHeaderDictionary interface.
HttpExceptionDescriptorResponseFormatterExtensions
Extension methods for the IHttpExceptionDescriptorResponseFormatter interface.
HttpRequestExtensions
Extension methods for the HttpRequest class.
HttpResponseExtensions
Extension methods for the HttpResponse class.
Int32Extensions
Extension methods for the int struct.