-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathIResponseCookieCollection.cs
44 lines (43 loc) · 1.88 KB
/
IResponseCookieCollection.cs
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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);
/// <summary>
/// Appends a list of cookie values with the specified key and options to the response.
/// </summary>
/// <param name="key">The key of the cookie.</param>
/// <param name="values">The values of the cookie.</param>
/// <param name="options">The cookie options.</param>
void Append(string key, string[] values, CookieOptions options);
/// <summary>
/// Appends a list of cookie values with the specified key to the response.
/// </summary>
/// <param name="key">The key of the cookie.</param>
/// <param name="values">The values of the cookie.</param>
void Append(string key, string[] values);
}
}