Description Usage Arguments Value Examples
Sets the proxy configuration for use with httr
1 | httr_proxy(proxy, cert_file = NULL)
|
proxy |
An object of class "proxy". A proxy object see
|
cert_file |
An SSL certification file. If NULL bmproxy will use the certificate file bundled with BrowserMob Proxy. For details see https://github.com/lightbody/browsermob-proxy/blob/master/mitm/README.md |
Returns a httr
config object see
config
. This config contains the url and port of the
proxy together with the appropriate certificate file.
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
prxy <- proxy(bmpPort = 9090L, port = 39500L)
# create a HAR
prxy %>% createHAR(ref = "httr_traffic")
rproj <- GET("https://www.r-project.org/", httr_proxy(prxy))
httr_har <- prxy %>% getHAR()
httr_har[["log"]][["entries"]][[1]]["request"]
httr_har[["log"]][["entries"]][[1]]["response"]
prxy %>% closeProxy
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.