parse_media: Parse a media type.

Description Usage Details Examples

View source: R/media-parse.r

Description

Parsed according to RFC 2616, as at http://pretty-rfc.herokuapp.com/RFC2616#media.types.

Usage

1

Details

A simplified minimal EBNF is:

Examples

1
2
3
4
parse_media("text/plain")
parse_media("text/plain; charset=utf-8")
parse_media("text/plain; charset=\"utf-8\"")
parse_media("text/plain; randomparam=\";=;=\"")

httr documentation built on May 29, 2017, 11:45 a.m.

Search within the httr package
Search all R packages, documentation and source code