MazamaWebUtils (version 0.1.7)

httpResponse.header: Create a HTTP Response Header

Description

This function will generate a header string containing only a minimal set of possible response header elements including:

  • Content-Type

Usage

httpResponse.header(type = "text")

Arguments

type

file type or standard extension

Value

A character string containing a valid HTTP Response header.

Examples

Run this code
# NOT RUN {
httpResponse.header('text')
httpResponse.header('json')
httpResponse.header('png')
# }

Run the code above in your browser using DataCamp Workspace