public static string GetIpAddress(this HttpRequest request)
 {
     return(HttpRequestHelper.GetIpAddress(request));
 }
 public static object GetBody(this HttpRequest request)
 {
     return(HttpRequestHelper.GetBody(request));
 }
 public static T GetBody <T>(this HttpRequest request)
 {
     return(HttpRequestHelper.GetBody <T>(request));
 }
 public static CultureInfo GetCultureInfo(this HttpRequest request)
 {
     return(HttpRequestHelper.GetCultureInfo(request));
 }
 /// <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));
 }
 /// <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));
 }
 public static bool IsRequestFor(this HttpRequest request, string endpoint)
 {
     return(HttpRequestHelper.IsRequestFor(request, endpoint));
 }
 /// <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));
 }