Intended to be used from endpoint target function. Note Content-Type
headers are handled by returning arg to endpoint.
porcelain_add_headers(data, headers)
Response data
Named list of headers to add.
Data from endpoint target with headers
porcelain_add_headers("output",
list("Content-Dispotition" = "output_file.txt"))
#> [1] "output"
#> attr(,"porcelain_headers")
#> attr(,"porcelain_headers")$`Content-Dispotition`
#> [1] "output_file.txt"
#>