first commit
This commit is contained in:
62
EmoneyInteceptor/Fiddler/Models/FiddlerPluginApplication.cs
Normal file
62
EmoneyInteceptor/Fiddler/Models/FiddlerPluginApplication.cs
Normal file
@@ -0,0 +1,62 @@
|
||||
using Fiddler;
|
||||
using EmoneyInteceptor.Fiddler.Interfaces;
|
||||
|
||||
namespace EmoneyInteceptor.Fiddler.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// Fiddler 插件应用的入口
|
||||
/// </summary>
|
||||
public abstract class FiddlerPluginApplication : IAutoTamper3
|
||||
{
|
||||
public virtual void OnLoad()
|
||||
{
|
||||
IFiddlerViewProvider viewProvider = GetFiddlerViewProvider();
|
||||
if (viewProvider != null)
|
||||
{
|
||||
PluginViewController.InsertFiddlerTabPage(viewProvider);
|
||||
}
|
||||
}
|
||||
|
||||
public abstract IFiddlerViewProvider GetFiddlerViewProvider();
|
||||
|
||||
public virtual void OnBeforeUnload()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public virtual void AutoTamperRequestBefore(Session oSession)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public virtual void AutoTamperRequestAfter(Session oSession)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public virtual void AutoTamperResponseBefore(Session oSession)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public virtual void AutoTamperResponseAfter(Session oSession)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public virtual void OnBeforeReturningError(Session oSession)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public virtual void OnPeekAtResponseHeaders(Session oSession)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public virtual void OnPeekAtRequestHeaders(Session oSession)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user