-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIResponseCookieCollection.cs
More file actions
28 lines (28 loc) · 1.05 KB
/
IResponseCookieCollection.cs
File metadata and controls
28 lines (28 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
namespace Inversion.Web {
/// <summary>
/// Describes a collection of response cookies.
/// </summary>
/// <remarks>
/// This is a stub of minimal functionality that needs matured and fleshed out.
/// </remarks>
public interface IResponseCookieCollection {
/// <summary>
/// Appends a cookie with the specified key, value and options to the response.
/// </summary>
/// <param name="key">The key of the cookie.</param>
/// <param name="value">The value of the cookie.</param>
/// <param name="options">The cookies options.</param>
void Append(string key, string value, CookieOptions options);
/// <summary>
/// Appends a cookie with the specified key and value to the response.
/// </summary>
/// <param name="key">The key of the cookie.</param>
/// <param name="value">The value of the cookie.</param>
void Append(string key, string value);
/// <summary>
/// Removes the cookies of the specified key from the response.
/// </summary>
/// <param name="key">The key of the cookie to remove.</param>
void Delete(string key);
}
}