Tools to Work with the 'Splash' JavaScript Rendering Service in R
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
773 B

% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/as_request.r
\title{Return a HAR entry response as an httr::response object}
\item{har_entry}{a HAR object (should contain a response body to be most useful)}
Return a HAR entry response as an httr::response object
URL <- ""
splash_local \%>\%
splash_response_body(TRUE) \%>\%
splash_user_agent(ua_macos_chrome) \%>\%
splash_go(URL) \%>\%
splash_wait(2) \%>\%
splash_har() -> har
keep(har$log$entries, is_xhr) \%>\%
map(as_request) \%>\%
map(httr::content, as="parsed")