Ejemplo n.º 1
0
        private void Response_SendingResponse(object sender, ResponseEventArgs e)
        {
            if (InvokeRequired)
            {
                Invoke(new HttpResponse.ResponseEventHandler(Response_SendingResponse), new object[] { sender, e });
                return;
            }

            ListViewItem item = clients[e.HttpClient] as ListViewItem;

            if (item == null)
            {
                return;
            }

            if (e.Response.Request.Uri != null)
            {
                item.SubItems[lastRequestColumn.Index].Text = UrlEncoding.Decode(e.Response.Request.Uri.PathAndQuery);
                item.SubItems[responseColumn.Index].Text    = StatusCodes.GetDescription(e.Response.ResponseCode);
            }

            item.Tag = new TransferTag(e.Response);
        }