Learn R Programming

request (version 0.1.0)

api_headers: Headers

Description

Headers

Usage

api_headers(.data, ..., .dots)
api_headers_(.data, ..., .dots)

Arguments

.data
Result of a call to api
...
Key value pairs of headers
.dots
Used to work around non-standard evaluation

Examples

Run this code
## Not run: 
# api('https://api.github.com/') %>%
#    api_config(verbose()) %>%
#    api_headers(`X-FARGO-SEASON` = 3) %>%
#    peep
# 
# api('http://httpbin.org/headers') %>%
#    api_headers(`X-FARGO-SEASON` = 3, `X-NARCOS-SEASON` = 5)
# ## End(Not run)

Run the code above in your browser using DataLab