from_har: Convert HAR to cURL

Description Usage Arguments Value Examples

View source: R/from-har.r

Description

Convert HAR to cURL

Usage

1
2
3
4
5
from_har(
  har,
  filter = c("All", "Doc", "JS", "CSS", "XHR", "Img", "XHR", "Media", "Font", "WS",
    "Manifest", "Other")
)

Arguments

har

a JSON string, URL or file

filter

a filter working on content-type given by the HAR entry response

Value

A character vector of cURL calls

Examples

1
2
3
4
5
6
## Not run: 
   hardir <- system.file("extdata", package = "curlconverter")
   harfile <- file.path(hardir, "har1.har")
   harfile %>% from_har

## End(Not run)

hrbrmstr/curlconverter documentation built on June 22, 2021, 11:58 a.m.