Skip to main content
Go to Latest
import * as mod from "https://deno.land/std@0.221.0/media_types/parse_media_type.ts";

Functions

Parses the media type and any optional parameters, per RFC 1521. Media types are the values in Content-Type and Content-Disposition headers. On success the function returns a tuple where the first element is the media type and the second element is the optional parameters or undefined if there are none.