DateHeaderValueManager Class¶
Manages the generation of the date header value.
- Namespace
Microsoft.AspNetCore.Server.Kestrel.Internal.Http
- Assemblies
- Microsoft.AspNetCore.Server.Kestrel
Syntax¶
public class DateHeaderValueManager : IDisposable
-
class
Microsoft.AspNetCore.Server.Kestrel.Internal.Http.
DateHeaderValueManager
Constructors¶
-
DateHeaderValueManager
()¶ Initializes a new instance of the
Microsoft.AspNetCore.Server.Kestrel.Internal.Http.DateHeaderValueManager
class.public DateHeaderValueManager()
-
Methods¶
-
Dispose
()¶ Releases all resources used by the current instance of
Microsoft.AspNetCore.Server.Kestrel.Internal.Http.DateHeaderValueManager
.public void Dispose()
-
GetDateHeaderValues
()¶ Returns a value representing the current server date/time for use in the HTTP “Date” response header in accordance with http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.18
Return type: Microsoft.AspNetCore.Server.Kestrel.Internal.Http.DateHeaderValueManager.DateHeaderValues Returns: The value in string and byte[] format. public DateHeaderValueManager.DateHeaderValues GetDateHeaderValues()
-