This function will generate a header string containing only a minimal set of possible response header elements including:
Content-Type
httpResponse.header(type = "text")
file type or standard extension
A character string containing a valid HTTP Response header.
# NOT RUN { httpResponse.header('text') httpResponse.header('json') httpResponse.header('png') # }
Run the code above in your browser using DataCamp Workspace