% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/string.R
\name{is_mime}
\alias{is_mime}
\title{Check if an argument is a MIME type string}
\usage{
is_mime(x)
}
\arguments{
\item{x}{(\code{any})\cr
Object to check.}
}
\value{
\code{TRUE} if \code{x} is a valid MIME type string, \code{FALSE} otherwise.
}
\description{
Validates the \code{type/subtype} format where the top-level type must be one of the IANA-registered
types: \code{application}, \code{audio}, \code{font}, \code{image}, \code{message}, \code{model}, \code{multipart}, \code{text}, or
\code{video}.
}
\examples{
is_mime("application/json")
is_mime("text/plain")
}
\references{
\url{https://www.iana.org/assignments/media-types/media-types.xhtml}
}
