class Mitm::ProxyHandler
- Mitm::ProxyHandler
- Reference
- Object
Included Modules
- HTTP::Handler
Defined in:
proxy_handler.crConstant Summary
-
Log =
Mitm::Log.for("ProxyHandler")
Constructors
Instance Method Summary
- #call(context)
-
#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.
- #id : String
-
#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.
Constructor Detail
Instance Method Detail
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.
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.