Provides convenience HttpRequestExtensions.
More...
|
static Uri | FullUrl (this HttpRequest request) |
| Groks the full url for an HttpRequest into an Uri.
|
static SameSiteMode | ReadSameSiteForCookie (this HttpResponse res, string cookieName) |
| Reads the SameSite attribute for a cookie from the request headers, since System.Net.Cookie doesn't expose this.
|
Provides convenience HttpRequestExtensions.
◆ FullUrl()
Uri PeanutButter.TestUtils.AspNetCore.HttpRequestExtensions.FullUrl |
( |
this HttpRequest | request | ) |
|
|
static |
Groks the full url for an HttpRequest into an Uri.
- Parameters
-
- Returns
◆ ReadSameSiteForCookie()
SameSiteMode PeanutButter.TestUtils.AspNetCore.HttpRequestExtensions.ReadSameSiteForCookie |
( |
this HttpResponse | res, |
|
|
string | cookieName ) |
|
static |
Reads the SameSite attribute for a cookie from the request 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/HttpRequestExtensions.cs