AddOrUpdateLastModifiedHeader Method
Definition
- Namespace
- Cuemon.AspNetCore.Http
- Assemblies
- Cuemon.AspNetCore.dll
AddOrUpdateLastModifiedHeader(IDecorator<HttpResponse>, HttpRequest, DateTime)
Attempts to add or update the enclosed HttpResponse of the decorator with the necessary HTTP response headers needed to provide last-modified information.
public static void AddOrUpdateLastModifiedHeader(this IDecorator<HttpResponse> decorator, HttpRequest request, DateTime lastModified)
Parameters
decoratorIDecorator<HttpResponse>The IDecorator<T> to extend.
requestHttpRequestAn instance of the HttpRequest object.
lastModifiedDateTimeA value that represents when the resource was either created or last modified.
Exceptions
- ArgumentNullException
decoratorcannot be null -or-requestcannot be null.