Provides extensions for asp.net HttpResponse objects.
More...
|
static IEnumerable< Cookie > | ParseCookies (this HttpResponse res) |
| ASP.NET core HttpResponse objects don't provide easy read mechanisms for cookies, so this extension method produces a lazily-loaded collection of System.Net.Cookie instances from Set-Cookie headers.
|
static SameSiteMode | ReadSameSiteForCookie (this HttpResponse res, string cookieName) |
| Reads the SameSite attribute for a cookie from the response headers, since System.Net.Cookie doesn't expose this.
|
Provides extensions for asp.net HttpResponse objects.
◆ ParseCookies()
IEnumerable< Cookie > PeanutButter.TestUtils.AspNetCore.HttpResponseExtensions.ParseCookies |
( |
this HttpResponse | res | ) |
|
|
static |
ASP.NET core HttpResponse objects don't provide easy read mechanisms for cookies, so this extension method produces a lazily-loaded collection of System.Net.Cookie instances from Set-Cookie headers.
- Parameters
-
- Returns
◆ ReadSameSiteForCookie()
SameSiteMode PeanutButter.TestUtils.AspNetCore.HttpResponseExtensions.ReadSameSiteForCookie |
( |
this HttpResponse | res, |
|
|
string | cookieName ) |
|
static |
Reads the SameSite attribute for a cookie from the response headers, since System.Net.Cookie doesn't expose this.
- Parameters
-
- Returns
- Exceptions
-
The documentation for this class was generated from the following file:
- source/TestUtils/PeanutButter.TestUtils.AspNetCore/HttpResponseExtensions.cs