api_headers: Headers

Description Usage Arguments Examples

View source: R/headers.R

Description

Headers

Usage

1
2
3

Arguments

.data

Result of a call to api

...

Key value pairs of headers

.dots

Used to work around non-standard evaluation

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
api('https://api.github.com/') %>%
   api_config(verbose()) %>%
   api_headers(`X-FARGO-SEASON` = 3) %>%
   peep

api('http://httpbin.org/headers') %>%
   api_config(verbose()) %>%
   api_headers(`X-FARGO-SEASON` = 3, `X-NARCOS-SEASON` = 5)

## End(Not run)

sckott/request documentation built on Aug. 11, 2018, 6:11 p.m.