Class RequestExtensions
- Namespace
- AbanoubNassem.Trinity.Extensions
- Assembly
- AbanoubNassem.Trinity.dll
Adds extra functionality to HttpRequest and HttpContext.
public static class RequestExtensions
- Inheritance
-
RequestExtensions
- Inherited Members
Methods
IsInertiaRequest(HttpContext)
Check whether the request is coming form an Inertia app or not.
public static bool IsInertiaRequest(this HttpContext context)
Parameters
context
HttpContextThe HttpContext to add the check to.
Returns
- bool
A boolean value indicating whether the request is coming form an Inertia app or not.
IsInertiaRequest(HttpRequest)
Check whether the request is coming form an Inertia app or not.
public static bool IsInertiaRequest(this HttpRequest request)
Parameters
request
HttpRequestThe HttpRequest to add the check to.
Returns
- bool
A boolean value indicating whether the request is coming form an Inertia app or not.