コード例 #1
0
ファイル: ResponseView.cs プロジェクト: xuezs/IronWASP
        public void SetResponse(Response Res, Request Req)
        {
            if (this.BaseTabs.InvokeRequired)
            {
                SetResponse_d InvokeDelegate_d = new SetResponse_d(SetResponse);
                this.BaseTabs.Invoke(InvokeDelegate_d, new object[] { Res, Req });
            }
            else
            {
                this.ClearData();

                this.SetHeader(Res);
                this.SetBody(Res);
                this.SetRoundTrip(Res.RoundTrip);
                FormatPluginsGrid.Rows.Clear();
                foreach (string Name in FormatPlugin.List())
                {
                    FormatPluginsGrid.Rows.Add(new object[] { false, Name });
                }
                this.ResetAllChangedValueStatus();
                this.DisplayedResponse          = Res;
                this.RequestOfDisplayedResponse = Req;
                this.AutoDetectFormatAndSetBodyParameters(Res);
                CheckAndShowReflection();
            }
        }
コード例 #2
0
ファイル: ResponseView.cs プロジェクト: 0ks3ii/IronWASP
        public void SetResponse(Response Res, Request Req)
        {
            if (this.BaseTabs.InvokeRequired)
            {
                SetResponse_d InvokeDelegate_d = new SetResponse_d(SetResponse);
                this.BaseTabs.Invoke(InvokeDelegate_d, new object[] { Res, Req });
            }
            else
            {
                this.ClearData();

                this.SetHeader(Res);
                this.SetBody(Res);
                this.SetRoundTrip(Res.RoundTrip);
                FormatPluginsGrid.Rows.Clear();
                foreach (string Name in FormatPlugin.List())
                {
                    FormatPluginsGrid.Rows.Add(new object[] { false, Name });
                }
                this.ResetAllChangedValueStatus();
                this.DisplayedResponse = Res;
                this.RequestOfDisplayedResponse = Req;
                this.AutoDetectFormatAndSetBodyParameters(Res);
                CheckAndShowReflection();
            }
        }