stop_mitm: Stop the mitmproxy background process and retrieve the...

View source: R/mitm-helpers.R

stop_mitmR Documentation

Stop the mitmproxy background process and retrieve the generated HAR file

Description

Stop the mitmproxy background process and retrieve the generated HAR file

Usage

stop_mitm(pid_obj, read = TRUE, save = NULL)

Arguments

pid_obj

mitm_pid object created with start_mitm

read

if TRUE (the default) read in the httr or HAR file. NOTE: you are encouraged to set this to FALSE if you're using HAR format and reading a large number of pages or pages with heavy resources. HARtools::readHAR()

save

if not NULL then the httr or HAR file generated by mitmproxy will be sent to this filesystem location (you need to use a path that includes a filename). This will be path.expand()ed. It is recommended that you use .json.gz as the file extension for the httr object type.

Value

a HARtools object if read was TRUE and the collection was har; a list of (minimal) httr response objects; nothing if read was FALSE.


ropenscilabs/middlechild documentation built on May 11, 2022, 9:11 a.m.