/// <summary> /// 过滤session /// </summary> /// <param name="session"></param> public void FilterSession(Session session) { if (Disabled && RuleList.Match(session)) { if (PHPersistence != null) //保存请求头 { Packet p = new Packet(session.url, session.ResponseHeaders); if (p.HasData()) { PHPersistence.Save(p); } } if (HttpHeaderProcess != null) { HttpHeaderProcess.Do(session); } } }