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 Aug. 16, 2017, 9:04 a.m.