Learn R Programming

splashr (version 0.4.0)

as_httr_req: Create an httr verb request function from an HAR request

Description

This function is very useful if you used splashr to find XHR requests in a dynamic page and want to be able to make a call directly to that XHR resource. Once you identify the proper HAR entry, pass it to this function and fully working function that makes an httr::VERB() request will be created and returned. The text of the function will also be put onto the clipboad if add_clip is `TRUE``

Usage

as_httr_req(entry, quiet = TRUE, add_clip = TRUE)

Arguments

entry

HAR entry

quiet

quiet (no messages)

add_clip

add clip (paste the function text to the clipboard)