Ejemplo n.º 1
0
        private static void TranslateSession(Fiddler.Session sess)
        {
            var handler = AfterSessionComplete;

            if (handler == null)
            {
                return;
            }

            if (sess.RequestMethod == "CONNECT")
            {
                return;
            }
            if (string.IsNullOrWhiteSpace(sess.RequestMethod))
            {
                return;
            }

            sess.utilDecodeRequest();
            sess.utilDecodeResponse();

            handler(new Session(sess));
        }