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.
30 lines
606 B
30 lines
606 B
3 years ago
|
% Generated by roxygen2: do not edit by hand
|
||
|
% Please edit documentation in R/h2c.R
|
||
|
\name{h2c}
|
||
|
\alias{h2c}
|
||
|
\title{Convert an 'httr' call to 'curl' command line}
|
||
|
\usage{
|
||
|
h2c(complete_httr_verb_call)
|
||
|
}
|
||
|
\arguments{
|
||
|
\item{complete_httr_verb_call}{wrap an \code{httr} \code{VERB} call with this function
|
||
|
and it will return the text of a working \code{curl} command line}
|
||
|
}
|
||
|
\description{
|
||
|
Convert an 'httr' call to 'curl' command line
|
||
|
}
|
||
|
\examples{
|
||
|
\dontrun{
|
||
|
h2c(
|
||
|
httr::GET(
|
||
|
url = "https://rud.is/",
|
||
|
httr::user_agent(splashr::ua_apple_tv),
|
||
|
query = list(
|
||
|
a = "b",
|
||
|
c = 1
|
||
|
)
|
||
|
)
|
||
|
)
|
||
|
}
|
||
|
}
|