mirror of https://git.sr.ht/~hrbrmstr/splashr
boB Rudis
7 years ago
29 changed files with 139 additions and 83 deletions
@ -1,10 +1,10 @@ |
|||
% Generated by roxygen2: do not edit by hand |
|||
% Please edit documentation in R/as_request.r |
|||
\name{as_request} |
|||
\alias{as_request} |
|||
\name{as_response} |
|||
\alias{as_response} |
|||
\title{Return a HAR entry response as an httr::response object} |
|||
\usage{ |
|||
as_request(har_entry) |
|||
as_response(har_entry) |
|||
} |
|||
\arguments{ |
|||
\item{har_entry}{a HAR object (should contain a response body to be most useful)} |
@ -0,0 +1,28 @@ |
|||
% Generated by roxygen2: do not edit by hand |
|||
% Please edit documentation in R/dsl.r |
|||
\name{splash_add_lua} |
|||
\alias{splash_add_lua} |
|||
\title{Add raw lua code into DSL call chain} |
|||
\usage{ |
|||
splash_add_lua(splash_obj, lua_code) |
|||
} |
|||
\arguments{ |
|||
\item{splash_obj}{splashr object} |
|||
|
|||
\item{lua_code}{length 1 character vector of raw \code{lua} code} |
|||
} |
|||
\description{ |
|||
The \code{splashr} \code{lua} DSL (domain specific language) wrapper wraps what the package |
|||
author believes to be the most common/useful \code{lua} functions. Users of the package |
|||
may have need to insert some custom \code{lua} code within a DSL call chain they are |
|||
building. You can insert any Splash \code{lua} code you like with this function call. |
|||
} |
|||
\details{ |
|||
The code is inserted at the position the \code{splash_add_lua}() is called in the chain |
|||
which will be within the main "splash' function which is defined as:\preformatted{function main(splash) |
|||
... |
|||
end |
|||
} |
|||
|
|||
If you need more flexibility, use the \code{\link[=execute_lua]{execute_lua()}} function. |
|||
} |
Loading…
Reference in new issue