server Package

class browsermobproxy.Server(path='browsermob-proxy', options=None)[source]

Initialises a Server object

Parameters:
  • path (str) – Path to the browsermob proxy batch file
  • options (dict) – Dictionary that can hold the port. More items will be added in the future. This defaults to an empty dictionary
start(options=None)[source]

This will start the browsermob proxy and then wait until it can interact with it

Parameters:options (dict) – Dictionary that can hold the path and filename of the log file with resp. keys of log_path and log_file
stop()[source]

This will stop the process running the proxy