porcelain_add_headers | R Documentation |
Intended to be used from endpoint target function. Note Content-Type
headers are handled by returning arg to endpoint.
porcelain_add_headers(data, headers)
data |
Response data |
headers |
Named list of headers to add. |
Data from endpoint target with headers
porcelain_add_headers("output",
list("Content-Dispotition" = "output_file.txt"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.