porcelain_add_headers: Add headers to endpoint output data

View source: R/headers.R

porcelain_add_headersR Documentation

Add headers to endpoint output data

Description

Intended to be used from endpoint target function. Note Content-Type headers are handled by returning arg to endpoint.

Usage

porcelain_add_headers(data, headers)

Arguments

data

Response data

headers

Named list of headers to add.

Value

Data from endpoint target with headers

Examples

porcelain_add_headers("output",
                   list("Content-Dispotition" = "output_file.txt"))

reside-ic/porcelain documentation built on March 4, 2024, 11:11 p.m.