C# Class TrotiNet.Example.RewritingProxy

Inheritance: ProxyLogic
Datei anzeigen Open project: Gizeta/Nekoxy-fiddler Class Usage Examples

Public Methods

Method Description
CreateProxy ( HttpSocket clientSocket ) : RewritingProxy
RewritingProxy ( HttpSocket clientSocket ) : System

Protected Methods

Method Description
OnReceiveResponse ( ) : void

Private Methods

Method Description
GetFileEncoding ( byte content ) : Encoding

Guess the file encoding, judging from the response content type

ModifyHTML ( string input ) : string

This is the core of the rewriting process. At this point, you have the entire HTML body. Change the content to your heart's content!

ReadEverything ( Stream input ) : byte[]

Method Details

CreateProxy() public static method

public static CreateProxy ( HttpSocket clientSocket ) : RewritingProxy
clientSocket HttpSocket
return RewritingProxy

OnReceiveResponse() protected method

protected OnReceiveResponse ( ) : void
return void

RewritingProxy() public method

public RewritingProxy ( HttpSocket clientSocket ) : System
clientSocket HttpSocket
return System