コード例 #1
0
 public static string GetIpAddress(this HttpRequest request)
 {
     return(HttpRequestHelper.GetIpAddress(request));
 }
コード例 #2
0
 public static object GetBody(this HttpRequest request)
 {
     return(HttpRequestHelper.GetBody(request));
 }
コード例 #3
0
 public static T GetBody <T>(this HttpRequest request)
 {
     return(HttpRequestHelper.GetBody <T>(request));
 }
コード例 #4
0
 public static CultureInfo GetCultureInfo(this HttpRequest request)
 {
     return(HttpRequestHelper.GetCultureInfo(request));
 }
コード例 #5
0
 /// <summary>
 ///     Endpoint of current request domain schema://host with port
 /// </summary>
 /// <param name="request"></param>
 /// <returns></returns>
 public static string GetDomain(this HttpRequest request)
 {
     return(HttpRequestHelper.GetDomain(request));
 }
コード例 #6
0
 /// <summary>
 ///     Endpoint of current request combine schema://host with port/path
 /// </summary>
 /// <param name="request"></param>
 /// <returns></returns>
 public static string GetEndpoint(this HttpRequest request)
 {
     return(HttpRequestHelper.GetEndpoint(request));
 }
コード例 #7
0
 public static bool IsRequestFor(this HttpRequest request, string endpoint)
 {
     return(HttpRequestHelper.IsRequestFor(request, endpoint));
 }
コード例 #8
0
 /// <summary>
 ///     Determines whether the specified HTTP request is a local request where the IP address
 ///     of the request originator was 127.0.0.1.
 /// </summary>
 /// <param name="request"> The HTTP request. </param>
 /// <returns>
 ///     <c> true </c> if the specified HTTP request is a local request; otherwise, <c> false </c>.
 /// </returns>
 /// <exception cref="System.ArgumentNullException">
 ///     The <paramref name="request" /> parameter is <c> null </c>.
 /// </exception>
 public static bool IsLocalRequest(this HttpRequest request)
 {
     return(HttpRequestHelper.IsLocalRequest(request));
 }