class Mitm::ProxyHandler

Included Modules

Defined in:

proxy_handler.cr

Constant Summary

Log = Mitm::Log.for("ProxyHandler")

Constructors

Instance Method Summary

Constructor Detail

def self.new(certs_path : String = "./certs", ca : Bool = true) #

[View source]

Instance Method Detail

def call(context) #

[View source]
def execute_request(host, port, tls, request : HTTP::Request, &block : HTTP::Client::Response -> ) #

Execute request over the target host This method is called each time the request to the target system is created. Redefine it in a subclass to catch outgoing requests.


[View source]
def id : String #

[View source]
def open_websocket(host, resource, port, tls, headers, client_ws) #

Open a websocket to the target host This method is called each time a websocket to the target host needs to be created. Target parameters are supplied with the websocket already connected to the client.


[View source]