コード例 #1
0
 // Token: 0x06000724 RID: 1828 RVA: 0x00029DD0 File Offset: 0x00027FD0
 public void ProcessRequest(HttpContext context)
 {
     if (!context.Request.IsAuthenticated)
     {
         context.Response.StatusCode = 401;
         return;
     }
     if (RpcHttpRequestHandler.IsProxyPreAuthenticationRequest(context.Request) || RpcHttpRequestHandler.IsHttpProxyRequest(context.Request))
     {
         context.Response.StatusCode        = 400;
         context.Response.StatusDescription = "Detected request from another HttpProxy";
         return;
     }
     if (RpcHttpRequestHandler.IsRpcProxyRequest(context.Request) && string.IsNullOrEmpty(context.Request.Url.Query))
     {
         context.Response.StatusCode = 200;
         return;
     }
     if (context.Request.Url.AbsolutePath.StartsWith("/rpc/diagnostics/", StringComparison.OrdinalIgnoreCase) && this.AllowDiagnostics)
     {
         this.ProcessDiagnosticsRequest(context);
         return;
     }
     context.Response.StatusCode = 404;
 }
コード例 #2
0
 // Token: 0x06000723 RID: 1827 RVA: 0x00029DA1 File Offset: 0x00027FA1
 public static bool CanHandleRequest(HttpRequest request)
 {
     return(string.IsNullOrEmpty(request.Url.Query) || !RpcHttpRequestHandler.IsRpcProxyRequest(request) || RpcHttpRequestHandler.IsProxyPreAuthenticationRequest(request) || RpcHttpRequestHandler.IsHttpProxyRequest(request));
 }