// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Microsoft.AspNetCore.Http; namespace Microsoft.AspNetCore.Authentication.Cookies { /// /// This is used by the CookieAuthenticationMiddleware to process request and response cookies. /// It is abstracted from the normal cookie APIs to allow for complex operations like chunking. /// public interface ICookieManager { /// /// Retrieve a cookie of the given name from the request. /// /// /// /// string GetRequestCookie(HttpContext context, string key); /// /// Append the given cookie to the response. /// /// /// /// /// void AppendResponseCookie(HttpContext context, string key, string value, CookieOptions options); /// /// Append a delete cookie to the response. /// /// /// /// void DeleteCookie(HttpContext context, string key, CookieOptions options); } }