Learn R Programming

ambiorix (version 2.2.0)

content: Content Headers

Description

Convenient functions for more readable content type headers.

Usage

content_html()

content_plain()

content_json()

content_csv()

content_tsv()

content_protobuf()

Arguments

Value

Length 1 character vector.

Examples

Run this code
list(
 "Content-Type",
 content_json()
)

if(FALSE)
 req$header(
  "Content-Type",
  content_json()
 )

Run the code above in your browser using DataLab