mirror of
https://github.com/github/codeql.git
synced 2025-12-18 09:43:15 +01:00
87 lines
1.4 KiB
C#
87 lines
1.4 KiB
C#
using System.Threading.Tasks;
|
|
|
|
namespace Microsoft.AspNetCore.Http
|
|
{
|
|
public interface IResponseCookies
|
|
{
|
|
void Append(string key, string value);
|
|
|
|
void Append(string key, string value, CookieOptions options);
|
|
|
|
void Delete(string key);
|
|
|
|
void Delete(string key, CookieOptions options);
|
|
}
|
|
|
|
public abstract class HttpResponse
|
|
{
|
|
public abstract IResponseCookies Cookies
|
|
{
|
|
get;
|
|
}
|
|
}
|
|
|
|
public class CookieOptions
|
|
{
|
|
public bool HttpOnly
|
|
{
|
|
get
|
|
{
|
|
throw null;
|
|
}
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
public bool Secure
|
|
{
|
|
get
|
|
{
|
|
throw null;
|
|
}
|
|
set
|
|
{
|
|
}
|
|
}
|
|
}
|
|
|
|
public delegate Task RequestDelegate(HttpContext context);
|
|
|
|
public abstract class HttpContext
|
|
{
|
|
}
|
|
|
|
public enum CookieSecurePolicy
|
|
{
|
|
SameAsRequest,
|
|
Always,
|
|
None
|
|
}
|
|
|
|
public class CookieBuilder
|
|
{
|
|
public virtual bool HttpOnly
|
|
{
|
|
get
|
|
{
|
|
throw null;
|
|
}
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
public virtual CookieSecurePolicy SecurePolicy
|
|
{
|
|
get
|
|
{
|
|
throw null;
|
|
}
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
}
|
|
} |